File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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: 61420
    
  67

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?