Jquery: problem getting the value of the clicked button in a list
Greetings,
how can i do this:
php:
for($idf=0; $idf<100; $idf++) {
echo " <button id='bttn_send_".$idf."' class='bttn' type='button' value='".$idf."'>go!</button>\n";
}
jQuery:
$(document).ready(function() {
// inside here I need to read the value of the button has been clicked.
// keep in mind I have the same .js for many pages and I can't work on the 'class' attribute of the button.
});
Thanks in advance,
A.