javascript - Format input field to separate the first 4 digits with a period, and the next 2 digits with a period -


i have text-input placeholder value. im wondering if possible have default value when user clicks input. value should this: ____.__._____

the _ character in value should replaced user typing, period should stay in place.

here input:

<input type="text" id="accountnumber" name="accountnumber" placeholder="located on card" /> 

you use plugin this:

masked input plugin


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -