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

jquery maskedinput removing incomplete text on blue

There is this other StackOverflow post at here that is the EXACT issue I am having. But there was only one answer and it wasn't that helpful. So I'm reposting in the hope that someone will have found a solution to this problem by now. I have a form…
Amanda Kitson
  • 5,477
  • 12
  • 49
  • 73
3
votes
1 answer

Apply a plugin's method to dynamically created elements?

I'm using the jquery.maskedinput plugin to create a mask for a phone number field: jQuery('input[type="tel"]').mask("(999) 999-9999"); Using a modification of Ryan Bates's nested form, I have a form where multiple phone numbers can be added…
robertwbradford
  • 6,181
  • 9
  • 36
  • 61
3
votes
3 answers

Input number list with jQuery

I'm making some work, but there are 3 issues still I have. I tried many ways, but nothing useless. If you know jQuery enough, please suggest me some changes. First please view below URL: http://jsfiddle.net/thisizmonster/maP57/ What am I doing…
Gereltod
  • 2,043
  • 8
  • 25
  • 39
3
votes
3 answers

Yii2: validate masked input

I'm using a Yii2 MaskedInput plugin with a model for an integer field. field($model, 'phone')->widget(MaskedInput::classname()([ 'mask' => '(999) 999-9999' ]); ?> When I type text to this field, I'm getting an error (Phone must be…
Alexey Berezuev
  • 785
  • 9
  • 27
3
votes
1 answer

jquery datepicker and jquery mask not working

I have this piece of code that uses jquery datepicker and jquery masked input. jQuery(function($) { $(document).on('click', '#date', function () { var me = $("#date"); me.datepicker({ showOn: 'focus', …
Yuliam Chandra
  • 14,494
  • 12
  • 52
  • 67
3
votes
1 answer

jquery.maskedinput allow optional characters in middle of mask?

I have asimple text box that has the following mask: $('#txt_DateOfBirth').mask('99/99/9999'); It is sometimes loaded programmatically with a proper date that doesn't exactly match the mask (i.e. a single digit month or day). If it is loaded with a…
Corey Ogburn
  • 24,072
  • 31
  • 113
  • 188
3
votes
1 answer

Autocomplete and mask on a field not working Jquery and MVC

I have a field like:
@Html.TextBoxFor(model => model.DivNo)
I am using Autocomplete and maskedinput jquery libraries to format my field and auto complete suggestion from database. $("#DivNo").mask("999…
user1882705
  • 1,081
  • 4
  • 15
  • 43
3
votes
2 answers

jQuery Masked Input plugin not working on form input?

I'm trying to use the Masked Input plugin on one of my dataTables Editor fields (#DTE_Field_phone). For some reason, the mask isn't being applied with this code: $('#DTE_Field_phone').mask('(999) 999-9999'); I'm calling the mask after the table and…
eclipsis
  • 1,541
  • 3
  • 20
  • 56
3
votes
2 answers

Ip Address mask for AngularJS

Does Anyone know a ip address mask plugin for AngularJS? Because I tried to use the "Jquery Input IP Address Control", but it's not working. When I try to use it, the "ngModel" attribute doesn't get the value of the textfield. In the screen I can…
z_inx
  • 345
  • 1
  • 3
  • 11
3
votes
7 answers

Limit of characters in string

I have the textbox that takes some string. This string could be very long. I want to limit displayed text (for example to 10 characters) and attach 3 dots like: if text box takes value "To be, or not to be, that is the question:" it display only…
Yo-ho-ho
  • 117
  • 2
  • 10
3
votes
1 answer

MaskInput don't work after submit form in JSF

I have this maskinput definition: