Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Non-Editable Region  RSS feed

 
Sanjay pts
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am want to write a servlet/jsp which on selecting the view option shows a non-editable (view only) html form. is there anything in javascript, html or java through which i can make all the fields on the form non-editable.
bye,
Thanx
Sanjay pts
 
Ramneek Handa
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use readonly=true for making form uneditable.
<input type='text' maxlength='30' name='name' size='20' value='Adam' readonly=true >"
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!