Questions tagged [maskedinput]

This jQuery plugin allows the application of a mask for fixed width inputs. This saves the user keystrokes and helps standardize data.

This jQuery plugin allows the application of a mask for fixed width inputs. This saves the user keystrokes and helps standardize data

Try out a demonstration.

203 questions
0
votes
0 answers

How can I add Masked Input Plugin on yet to be added contents?

Is there a way to add masked input plugin on dynamically loaded contents? something like $("document").on("mask", "mask('(999) 999-9999')")? Currently Im using $.getScript(), but sometimes it fails to load at all... Thanks!
Pa3k.m
  • 994
  • 2
  • 7
  • 22
0
votes
1 answer

Remove input masks on Successful Submit only

I am currently using this script to remove my masks on submit: $(".active_validator").submit(function() { $('.money_mask').unmask(); $('.num_mask_thou').unmask(); $('.zipcode').unmask(); $('.only_numbers').unmask(); }); What I am…
RubyNewbie
  • 547
  • 5
  • 21
0
votes
1 answer

Unable to mask a text field

I am trying to mask a text field that is created after an Ajax response. Everyhing is okay with Ajax request and response. To make this i am using jquery maskedinput plugin. I have already imported neccesarry js files to my HTML page. Currently i am…
Tartar
  • 5,149
  • 16
  • 63
  • 104
0
votes
1 answer

JQuery Mask Input

I've used Jquery masked input but I just came across an interesting requirement. The user wants to save a series of dates on a single field. They want to enter the dates like this: 10/10/2013; 12/12/2004; 10/30/2003 The field naturally would be…
dawriter
  • 425
  • 3
  • 8
  • 21
0
votes
1 answer

Move cursor to end input with jquery masked input

I'm using jQuery masked input plugin, and when I take the focus of the field and return the focus (blur, focus) the cursor back to the beginning, need to always leave the cursor at the end but I can not. $('#id_origin_zipcode').bind('focus',…
Vanderson Ramos
  • 341
  • 1
  • 4
  • 15
0
votes
2 answers

jQuery Masked Input - Is it possible to retrieve the mask?

I'm using jQuery Masked Input Plugin with jQuery Validation Plugin. When a field of the form loses focus, the jQuery Validation Plugin shows a message but that's not happening to the fields that are bound to masks, perhaps because the blur event…
0
votes
1 answer

jQuery Masked Input | Can't remove mask after correct entry to the phone number field

Well, I am trying to mask cellphone number field of my magento store. The mask I want to use is "(599) 999 9999". If user enter phone number correctly, I want to remove the mask and trim those whitespaces and parantheses like "(532) 123 45 67" ->…
ilkb
  • 33
  • 1
  • 8
0
votes
0 answers

Masked input plugin appending the fixed first three characters of telephone no on form submit

I am using masked input 1.2.2 Jquery plugin from digitalbush.com.I want to have the first three digits of a telephone no to be fixed ie. 679-###-####.So my masked input is '679-###-####'.Problem I am facing is when I have the focus on the text-box…
Raj
  • 1
  • 2
0
votes
1 answer

Why is mask not being applied?

I want to apply mask to an input element when it receives focus with jquery.maskedinput plugin. But the first time it gets focus, the mask is not there. Only when it receives focus the second time, the mask shows up. How can I make the mask to show…
Ray Cheng
  • 12,230
  • 14
  • 74
  • 137
0
votes
1 answer

Jquery masked input in asp.net

I have two asp.net textboxes I need code for input mask with time format and also for date format. Please provide url of jquery file also. Thank you
user2902617
0
votes
2 answers

Can anyone fix this 12/24 hour time regexp?

I have been scouring the internet for a way of doing 12/24 hour time format only ( _ _ : _ _ with no AM/PM) validation. The requirement is that it must actively prevent keypresses that would invalidate the time. It also must accept either 1 or 2…
Josh
  • 1,648
  • 8
  • 27
  • 58
0
votes
1 answer

Using jQuery mask and backbone

Using backbone and requirejs. I want to use an input mask. I put another jQuery construct in the view and it works just fine, but the mask doesn't show up in the phone fields. What am I doing wrong? Thanks. render: function(){ var…
Tom
  • 67
  • 1
  • 1
  • 7
0
votes
1 answer

Capture jQuery Masked Input change of Input

I have lots of input fields using the Jquery Masked Input but I can't figure out how to capture the change of the value on the input. I have tried: JQuery.Change() $('#Selector').bind('input', function () {}) But, no success. Anyone could help me?
MarceloMadnezz
  • 297
  • 6
  • 16
0
votes
1 answer

How to create a text input that accepts data in one (scientific) format but stores it in another format

I need to let users enter molarity units into an HTML input (mM, uM, nM, and pM) instead of long string of numbers to the right of the decimal point. "16pM" is easier to type than .000000000016. The database will be sending the decimal version to…
Tim
  • 8,669
  • 31
  • 105
  • 183
0
votes
1 answer

Value on Suddenly Change on Click/Focus

This is simple script using jquery, my main problem is Step 1: click row no 5 Step 2: click row no 3 Step 3: click on input My question, why data change when I click on input? for your info in input I use custom maskedinput definition…
FYA
  • 167
  • 1
  • 3
  • 15