Switching readonly textboxes to nonreadonly
2 posts
• Page 1 of 1
Switching readonly textboxes to nonreadonly
Is it possible use javascript to switch textboxes that I have on a web application to nonreadonly.
I could simply overwrite with new none readonly textboxes but obviously if I could just change the property without needing any overwrites it would be preferable.
Thanks!
Mac OS 10.6.7 - Personal
Ubuntu Server 11.04 - Server
ok. after looking through a huge manual available for my use and making sense of the stupid example they gave the solution is amazing simple. In fact, the only reason I didn't see it was because Visual Web Developer didn't give me the option in the drop down... who knows why? lol
This is what you have to do:
- Code: Select all
document.getElementById('your_id').readOnly = false;
Anyway, I hope this saves somebody else the time it took me to track it down lol.
Mac OS 10.6.7 - Personal
Ubuntu Server 11.04 - Server
2 posts
• Page 1 of 1
Return to HTML, CSS, and Scripts
Who is online
Users browsing this forum: No registered users and 9 guests