Reputation: 37
How can I select input fields with names like name="myinput[something][etc]"
?
$('input[name=myinput[something][etc]')
doesnt seem to work...
Upvotes: 1
Views: 75
Reputation: 227
$('input[name="myinput[something][etc]"]')
if want to select by id, then it must be
$('input[id=""]')
hope this....
Upvotes: -1
Reputation: 190905
Just give them id
attributes. It will save you a lot of grief.
Or you could try $('input[name="myinput[something][etc]"]')
Upvotes: 4