permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes HTML Text Filed values 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 "HTML Text Filed values" Watch "HTML Text Filed values" New topic
Author

HTML Text Filed values

Prerna
Greenhorn

Joined: Jun 27, 2001
Posts: 1
how do i pass html text field values from a form without letting the values of the text field changed also .. show it as disabled text field... but access its value for some validation checks
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

Prerna,
I dont know the answer sorry.
I hate to say this but, your name does not comply with the Javaranch naming guidelines which can be found at http://www.javaranch.com/name.jsp
please register again with a valid name.

SCJP
Visit my download page
Mohamed Yousuff
Ranch Hand

Joined: Jun 23, 2001
Posts: 73

use the readonly property to the html tag like this <input type=text value='javaranch' readonly style='background:gray'>
If you want to show it as disabled, use stylesheet as shown above.
Hope you understand the solution

Originally posted by Prerna:
how do i pass html text field values from a form without letting the values of the text field changed also .. show it as disabled text field... but access its value for some validation checks


------------------
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HTML Text Filed values
 
Similar Threads
hidden variable?
How to copy HTML page content to clipborad
how to upload using html or javascript?
difference between html textbox and struts-html textbox?
Subscripts / Superscripts