I need some hepl to find a selector for jQuery.
I have these textboxes:
<input type="text" name="text[1]" value="1,2,3">
<input type="text" name="text[2]" value="1,8,9">
<input type="text" name="text[3]" value="7,4,3">
I need for each these textboxes do a search and find if value=1 exist.
I need help to the selector (something like $(input[name=text[]]).each()
)
I don't want to use $(input[name^='text']).each()
, I don't think it's safe because the rest of my code. Is there a better way?
Can anyone help?