Hi all,

if i have following html and wanna take a wild card match depends on
id and then assign to a click() event, what is the sytanx supposed to
be? i am new for jquery..

<button type='submit' id='xxx-1'  class='delete-a' >Delete</button>
<button type='submit' id='xxx-6' class='delete-b'>Delete</button>
<button type='submit' id='xxx-99' class='delete-c'>Delete</button>

for id $('#xxx-%').click( function() {} ) ?

my purpose is search all id with 'xxx-%' pattern, then assign click
event to each of them, inside click(), can get that id's value, so how
to refer it for my suitation?

appreicated much for any help.
thanks in advance/Davis.

Reply via email to