i have a set of text boxes. I gave the id as an array as pageid[]
so id of first text box is pageid[0]
Am trying to do some action on that based on id
for eg:
$("#pageid[0]").val("1234");
I’m not getting any error. Am I doing anything wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try:
Oh and by the way you have invalid HTML because according to the specification:
So
[and]should not be used in your ids and names.