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
1 answer

How to Convert Phone, Fax, Zip Code Formats for Database Entry

I have masked inputs for Phone, Fax, and Zip Code. Phone and Fax are formatted like (999) 999-9999 and the Zip Code is formatted like 99999-9999. When I submit the page, the the database is expecting a different format. When I update the database, I…
Brian
  • 1,184
  • 2
  • 21
  • 38
0
votes
1 answer

MaskedInput with two optional sections not working

I'm using MaskedInput plugin for jQuery to create an input mask that has two optional sections. a?a-a?a where the second character is optional. But MaskedInput always sees it as invalid input if I enter a-a even the second character is it's marked…
Ray Cheng
  • 12,230
  • 14
  • 74
  • 137
0
votes
2 answers

MaskedEditExtender is not working from 2nd line in gridview in Asp.Net

I have a gridview on my page, there is three columns, one is for quantity, i need to use MaskEditExtender with simple TextBox, but it is working only on first row, from second row the textbox is appearing without mask. here is my code :
Haider Ali Wajihi
  • 2,756
  • 7
  • 51
  • 82
0
votes
1 answer

How to go to next part in Masked Input mask?

Let's say I have a mask for a text box as: aa?a-999?999 the first 2 characters are required but the third one is optional. When a user enters the first two character, does does he jump to the second part to enter the numbers? I tried tab but it…
Ray Cheng
  • 12,230
  • 14
  • 74
  • 137
0
votes
1 answer

DigitalBush jquery maskedinput type error

I have been beating my head against the wall so to speak on this one. I am using the jquery.maskedinput plugin found here: https://raw.github.com/digitalBush/jquery.maskedinput/1.3.1/dist/jquery.maskedinput.js NOTE: There was a syntax error on…
user2371033
  • 95
  • 1
  • 2
  • 9
0
votes
1 answer

Masked input empties value when user doesnt fill all the mask

I have a phone input on a form. Im using masked input and i had to create a span simulating a value for when user clicks the input it removes the span, but if the user doesnt fill all the mask, on blur, it doenst show the false value (span im…
Ramon Vasconcelos
  • 947
  • 3
  • 14
  • 31
0
votes
2 answers

How to mask Datefield in Flex?

Does anyone know how to mask the input in a DateField in flex? Our DateField uses the format DD/MM/YYYY. Our users want: to be able to type the date in without having to type in the slash still be able to use the date selection in the date chooser…
cp5
  • 1,087
  • 6
  • 26
  • 58
0
votes
1 answer

Rails cocoon gem issue with jquery mask: new entry created every time

I am using Cocoon 1.1.1 to nest phone fields for a Person model. I wanted to have a input mask for the phone number, so I included jquery.maskedinput-1.3.min.js under the javascript folder. It seems that when I apply the mask, the parameters…
RailinginDFW
  • 1,523
  • 12
  • 19
0
votes
1 answer

get rid of x if no extension given for phone field in Jquery masked input plugin

Im using jquery Masked input plugin. I have the following mask on a field: "?999-999-9999 x9999" Why ? in begining? because if user entered incomplete number, i dont want the field to clear out so i made the whole thing optional. now when user is…
Giorgi
  • 609
  • 2
  • 15
  • 29
0
votes
1 answer

jquery roman numeral with maskedinput

Help me with masked input mask for roman numeral. I need to create a mask with which I can input only roman number from I to X
0
votes
1 answer

Numpy.ma polyfit function for masked arrays crashes on integer input

The numpy polynomial fit function for masked arrays, ma.polyfit, crashes on integer iput: import numpy.ma as ma x = ma.arange(2) y = ma.arange(2) p1 = ma.polyfit(np.float32(x), y, deg=1) p2 = ma.polyfit( x , y, deg=1) The last line…
Rolf Bartstra
  • 1,643
  • 1
  • 16
  • 19
0
votes
1 answer

How can I resolve maskedInput error: Object doesn't support property or method 'mask'?

Tools jquery.maskedinput-1.3.min.js (DigitalBush) Visual Studio 2012 SP1 .NET Framework 4.5 MVC Runtime v4.0.30319 Windows 7 IE 9 64-bit jquery/1.7.1/jquery.min.js The full panoply of References MS supplies with a new Web MVC project Issue I had…
Arnold
  • 515
  • 1
  • 9
  • 18
0
votes
1 answer

jQuery maskedinput and form reset

I'm using the Masked Input plugin for jQuery by Josh Bush (Masked Input) on a typical address input form on the ZipCode and Phone Number fields. When I display a record in the form and set the inputmask on the fields in question, the form initially…
Lee Greco
  • 743
  • 2
  • 11
  • 23
0
votes
0 answers

Build own $.mask.definitions for hours

I´m trying to set a mask into a input text. this is my code: $.mask.definitions['H'] = '[012]'; $.mask.definitions['N'] = '[012345]'; $.mask.definitions['n'] = '[0123456789]'; $(elem).mask("Hn:Nn"); With this it can write 21:55 or 15:32, but it can…
Fausto Carasai
  • 251
  • 1
  • 6
  • 16
0
votes
1 answer

How to use .unmask() function on MaskedInput jQuery app?

I try to use .unmask() function after .blur() (jQuery), but it did not worked. Please help, this is my code: $('.cnpj').focus(function() { $(this).mask('99999999/9999-99'); }) .blur(function(e) { if($(this).val().length == 0) { var…
rafaelphp
  • 43
  • 2
  • 10
1 2 3
13
14