user1096909
user1096909

Reputation: 99

Masking Text Input

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

Answers (1)

Selvakumar Arumugam
Selvakumar Arumugam

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

Related Questions