Reputation: 99
I have a text input box and need to mask the input with "X" whatever the user enters. Is there any way it can be achieved using jQuery. We are using struts2 in our application. Thanks
Upvotes: 0
Views: 307
Reputation: 79830
Use type=password
to mask the input typed by the user.
<input type="password" .../>
I think in struts 2 you have a tag for it.
<s:password .. />
Passord field: http://struts.apache.org/2.1.8/docs/password.html
Upvotes: 7