codehaven - php snippets - coding help
Generic filters
Exact matches only

Get Element’s Value – Name – ID – ATTR – CLASS

1st June 2013

Jquery - Variables

Handy script, whenever you click an element with a class called .button it will alert the name and value of that element.

Or try this

You could even swap the button text when you click by using this method.

Last resort!

Take a look at this also Get the id, value,name,html of element after click function

Was this code snippet helpful?