I have a bunch of buttons that all use the same .click()method. How can I assign a local jquery variable to the id of the button that was clicked?var $??? = e.target;What I am trying to do is get the text of the button.Thanks
There's no such thing as a "jquery variable". There's just variables. What does $??? represent? Are you saying you want the actual variable identifier name to be dynamic, based on the button id?
amnotiam haha! hes asking us what ??? should be in that line.
Dave: You mean he's asking for advice on the best name for a variable?
Ok the question was worded badly. Joseph Marikle's answer worked.