i have a lot of input fields like:
<input type="hidden" value="" name="participants[1][canceled]">
<input type="hidden" value="" name="participants[2][canceled]">
<input type="hidden" value="" name="participants[3][canceled]">
I am looking for a jQuery selector that gives me all of these items. I dont want to use a loop. I would prefer something like:
jQuery('[name="participants[*][canceled]"]') // actually dont work
Is that possible?
Thank you
EDIT: Thanks to all of you
$(':hidden[name^="participants["][name$="][canceled]"]');
Was my solution and works like a charm. Ty