Hi all, I have some button that will be generated dynamic in following pattern, and what i want to do is to assign each button a click() event with the unique integer ( come from button id's value ) pass into click() event.
<button type='submit' id='xxx-1' >Delete</button> <button type='submit' id='xxx-6' >Delete</button> <button type='submit' id='xxx-99' >Delete</button> logic something like :- $('match all button id like xxx%').click( function() { var i=id's num // ie 1, 6, 99 } ); as i am new for jquery and not much idea what is the exactly stynax to archive it, appreicate for anyone help. Thanks/Davis.