• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Read Values From Read only Text field.

 
Shrikanth Nekkanti
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have disabled two text fields .However when I click on submit button i want to read the values of disabled text fields.

can anyone suggest me how to resolve my problem.
 
samir ware
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Shrikanth,
I am not sure if this approch will work in your case or not. But just try out this.
If the name of the text box that you have disabled is account ,just before final submit, call a javascript function ...lets say callMe() in which you will write
document.account.disable =false
and then make the final submit.
Hope this helps you .
Thanks and regards
Samir
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disabled fields are not meant to be posted back to the server. The only way to post them back is to enable them as discribed above.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use readonly rather than disabled, the fields are submitted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic