1

How can I select input fields with names like name="myinput[something][etc]" ?

$('input[name=myinput[something][etc]') doesnt seem to work...

3 Answers 3

4

Just give them id attributes. It will save you a lot of grief.

Or you could try $('input[name="myinput[something][etc]"]')

Sign up to request clarification or add additional context in comments.

Comments

0
$('input[name="myinput[something][etc]"]');

Comments

-1
$('input[name="myinput[something][etc]"]')

if want to select by id, then it must be

$('input[id=""]')

hope this....

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.