permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes How To Set All the Textfields in a Web Page to READONLY? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How To Set All the Textfields in a Web Page to READONLY? " Watch "How To Set All the Textfields in a Web Page to READONLY? " New topic
Author

How To Set All the Textfields in a Web Page to READONLY?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I understand that if I put READONLY in the <input type="text" .... /> tag, it does the work.

I am going to populated all the textfields in a web page from the database and all those textfields will be READONLY. Is there an easy way to control all the textfields by one statement?

Thank you.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Not in HTML, no.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: How To Set All the Textfields in a Web Page to READONLY?
 
Similar Threads
Visual JSF, checkbox and Textfield behavior
Custom Component ELResolveJSF 1.2
Can the color for the disabled item be changed
how to encode query string.
Enumeration Object problem