GeeCON Prague 2014*
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


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: 61315
    
  66

Not in HTML, no.


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