• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make text field disabled using html tag?

 
michelle Wang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My code is like this:
<html:text property="branchID" size="10" maxlength="10" styleClass="normal" value="<%=branchID%>" />

How to make this text field disabled (editable=false)?
 
bhuvan sundar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The <html:text> tag has an attribute called "disabled" for which you can set the value as either TRUE or FALSE.
 
michelle Wang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yes it works. thanks a lot
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!