Answer the question
In order to leave comments, you need to log in
How to specify the parameter of the second button with different id from one button using jQuery?
There are two buttons. I need to get the data-id parameter of another button with Ajax in another button.
You can just get the parameter in that button like this
. But how to get the parameter from the other button?
var name = $(this).data('name');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question