• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic