Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two text box. initially second text box readonly property is true. i want when i enter value in first text box the second text box readonly property is false.
i want this using java script. please suggest me code.
Posted
Updated 18-Nov-13 0:05am
v2
Comments
Nelek 18-Nov-13 5:56am    

Try this
document.getElementById(id).disabled= false;
If this solution coult help.vote me
 
Share this answer
 
Please try
in java script function
var txt2 = document.getElementById("txt2");
txt2.removeAttribute('readonly');
 
Share this answer
 
v2

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