Possible Duplicate:
Javascript / Jquery - Get number from string
Using
var id = $(this).attr("class");
I get all the classes of the clicked link, var id returns 4 classes:
button_red 501 ajax-call class2
How do I extract the class '501' and put it in an var like var id_numeric = 501
?
Thanks for your advice