From advanced to novice... come, join in, teach, and learn. Web programming and help. We have stuff on it all: php, html, asp, asp.net, etc. Share your coding expertise too.
Moderators: Management, Forum Experts
by gries818 on Tue Aug 05, 2008 10:26 am
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.5.7 - Personal
Ubuntu Server 9.04 - Server
-

gries818
- Support Team
-
- Posts: 6022
- Joined: Wed Jul 07, 2004 2:28 pm
-
by gries818 on Tue Aug 05, 2008 11:22 am
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.5.7 - Personal
Ubuntu Server 9.04 - Server
-

gries818
- Support Team
-
- Posts: 6022
- Joined: Wed Jul 07, 2004 2:28 pm
-
Return to HTML, CSS, and Scripts
Users browsing this forum: No registered users and 0 guests