Click here to Skip to main content
15,918,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I make specific inputs readonly if checkbox is not checked. On my table the second row does not remove read-only if checkbox is checked. What I'm doing wrong on my code?

I have put my code on iDOKin[^]

Your help is a approciated.

What I have tried:

I tried to change the id="compitableDevice" on the second row but no luck
Posted
Updated 20-Mar-17 4:23am

1 solution

IDs have to be unique, if you have multiple ids you get unexpected behaviours such as only the first element with that id being recognised which is what is probably happening here. Use data attribute tags to identify your elements rather than ids.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900