[wd_asp elements=’search’ ratio=’100%’ id=1]

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

var emailaddress = $('.changeme').text();

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

Last resort!

var clickedon = $(this).children('.tablebutton').attr('value');
alert (clickedon);

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