I have 2 elements with the same id , and I need to access one of them so I though I could access by its node parent. Is that possible? If not what can I do?
Share
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.
It’s note valid code to have the same id in a html document. Use
classinsteadid.Read more to understand the role of each one: http://www.w3.org/TR/html4/struct/global.html#h-7.5.2