• Post Reply Bookmark Topic Watch Topic
  • New Topic

Maxlength of Textbox in JSP  RSS feed

 
Sunil Chavan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I've set maxlength as 50 for my textbox. It restricts me to enter more than 50 characters in edit mode but when i display name in it which is more than 50 characters; it allows me to display it. While displaying i've made it readonly so I wont be able to delete characters which are more than 50.

Why maxlength behaving so. Also is there any other way where i can restrict characteres for both "manual enter" and "programatically set values".

Thanks for help in advance.

Sunil Chavan
 
pooja jain
greenhorn
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, use javascript.
 
Sunil Chavan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pooja jain wrote:yes, use javascript.


Hi Pooja,

Thanks for your suggestion.

I used substring function of javascript to resolve the problem.

Thanks a Ton

Regards ,

Sunil Chavan

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!