I have this jquery code:
$.each('.button.gobutton', function() {
alert($(this).attr('title'));
});
I basically want to iterate through each element and get the value of the title for each element. However when I run this code I get undefined for all the values. Below is the html:
<button class="button gobutton" title="2">GO</button>