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
6
votes
3 answers

jQuery masked input plugin conflicts with validation plugin

Given a text box that is masked using the Masked Input plugin, and is marked as a required field by the Validation Plugin, consider the following: If you put your focus in a text box that is masked, then leave it without entering any information (or…
Mike
  • 71
  • 1
  • 1
  • 3
5
votes
5 answers

jQuery plugin for formatting inputs

I want to accept values in any of the following format: -$5 -$5.00 $5 $5.00 Is it possible to do that using Masked Input Plugin? If not, what plug-in am I looking for? How do I indicate a character is optional? The code I've got so…
antony.trupe
  • 10,640
  • 10
  • 57
  • 84
5
votes
1 answer

Imask.js set currency symbol to the and of number by appending changeable double zero to the end of price

How to do input masking something like this by appending doube zero by default to the end of price using js library imask.js or with plain javascript : 3.380.321,00 $ var currencyMask = IMask( document.getElementById('price'), { mask:…
Andreas Hunter
  • 4,504
  • 11
  • 65
  • 125
5
votes
3 answers

rake aborted! ExecJS::RuntimeError: (execjs):1

I'm getting an error while precompiling on production server; however, if I set the environment as production and run the precompilation on the development computer, it runs ok. How can it be possible? RAILS_ENV="production" bundle exec rake…
Jorge
  • 1,730
  • 20
  • 27
5
votes
2 answers

masked input working ok on desktop and working ok for some masks on mobile

I am using a masked plugin for two fields. One is for a Canadian Postal Code (T5T 5T5)and the other is for a phone number (999-999-9989). Both masks work ok on desktop. The problem is seen if you open the same code on a mobile phone. As the user…
mpora
  • 1,411
  • 5
  • 24
  • 65
5
votes
2 answers

Object not defined when running in a loop, but not when executed sequentially

I'm using the jQuery Masked Input plugin to set all input elements with a data-mask attribute defined to the attribute mask value: Given this html: And…
asawyer
  • 17,642
  • 8
  • 59
  • 87
5
votes
5 answers

JQuery Masked Input Plugin doesn't accept paste

First of all, I'm using: Jquery 1.8.3 Masked Input Plugin 1.3.1 (The plugin can be found here) My goal: Mask an input field to accept only 11 numeric digits. However I want it to accept copy and paste in a way that if I copy a text containing…
jguilhermemv
  • 769
  • 3
  • 11
  • 28
5
votes
1 answer

Jquery Masked Input plugin allow dot

I'm using JQuery Masked input plugin. $("#percent").mask("99.99?9"); This allows numbers like 10.999, 10.99, 01.999, 01.99 What I want to achieve is that I don't want user to type 01.99. Instead if user types 1.99 I want 0 before 1 to be…
Giorgi
  • 609
  • 2
  • 15
  • 29
4
votes
5 answers

Specify date format in mask when using an input mask?

I've been using the jquery masked input plugin to apply a date mask to text inputs. This works pretty well, but I want the displayed mask to also show the format. That is, instead of the mask being __/__/____ I want to be able to specify the…
Adam
  • 6,539
  • 3
  • 39
  • 65
4
votes
3 answers

jquery masked input on loaded content

So I have a joomla! page that is partly generated by functions based on the user. So parts of the forms that I need to use the 'masked input plug-in' on are loaded via functions on page load. The issue I have is, on the fields that are standard HTML…
Greg Thompson
  • 886
  • 4
  • 12
  • 31
4
votes
1 answer

How use ngMask in md-datepicker

I am trying to use ngMask with material datepicker and is not working. Anyone, has any idea how to put it to work together ? Some ngMask examples: http://candreoliveira.github.io/bower_components/angular-mask/examples/index.html#/
Thalles Noce
  • 791
  • 1
  • 9
  • 20
4
votes
4 answers

masked input inside xeditable text box not working

I have an x-editable input for my bootstrap application , which I'm using to edit usernames. now i need to use the jquery.maskedinput.min.js to get the masked format while iam entering in text box which is appering when i click on the span as in…
abhi
  • 794
  • 5
  • 15
  • 28
4
votes
3 answers

AjaxControlToolkit MaskedEditExtender - custom mask appearance

I'm using a MaskedEditExtender to show users what format they should use to enter a date into a textbox. How do I change the mask to be dd/MM/yyyy instead of __/__/____?
kristian
  • 22,731
  • 8
  • 50
  • 78
4
votes
1 answer

jquery maskedinput. How to check availability of the mask

Can anyone help me with checking availability of the mask. I use this one: if ($.isFunction($("#ID").mask)){ var val = $("#ID").mask(); } else { var val = document.getElementById(ID).value; } but this condition is always TRUE. Don't matter…
4
votes
1 answer

Issues with jQuery Masked plugin

This is my field with mask: $('#Cellphone').mask("(99)9999-9999?9", { placeholder: " " }); I want to clear the mask when my input lost its focus. Is there a way to do it? Something like an option of the…
Kiwanax
  • 1,265
  • 1
  • 22
  • 41
1
2
3
13 14