This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 61106
    
  66

Not in HTML, no.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: How To Set All the Textfields in a Web Page to READONLY?