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

What is the best pratice to change a field value when a form is submitted in MVC?

I have a lot of fields in my View that are masked with jquery MaskedInput. They're masked because the user need to see it with a mask, but I need to remove these masks before commiting the value in my database. I don't want to mess up the code,…
Thiago Ferreira
  • 661
  • 3
  • 19
0
votes
0 answers

jquery masked input throws "Object doesn't support property or method 'mask'"

I am using "jquery.maskedinput" with jquery v 2.2.1. When the page loads I get an "Object doesn't support property or method 'mask'" exception. Here is the view: @{ ViewBag.Title = "Edit Profile"; }

Edit Profile

@using…
Trenton
  • 265
  • 1
  • 3
  • 16
0
votes
1 answer

x-editable + maskedinput returning underscores on enter but not on click

x-editable + maskedinput returning underscores from maskedinput on enter but it does not when I click. Any ideas on how to fix this? JSFiddle: http://jsfiddle.net/xBB5x/10654/ jQuery…
user262430
  • 229
  • 3
  • 17
0
votes
1 answer

Telephone mask not working with maskedinput

I am not getting the mask to show up when I am typing a number like it shows on their demo. I am using gem 'maskedinput-rails'. My code is:
Nuanes
  • 67
  • 1
  • 5
0
votes
1 answer

How do I make a masked input that only allows specific numers?

I want to make a masked input that only accepts the following: 00-24:30 or 00 It's for a time of day box. For example: 12:30 or 12:00 I have been using this component: https://github.com/insin/inputmask-core#pattern But it will take any number if…
user1261710
  • 2,539
  • 5
  • 41
  • 72
0
votes
2 answers

How to customize the Masked Input jQuery plugin

I am using the jQuery mask plugin from http://digitalbush.com/projects/masked-input-plugin/ I want to customize my plugin and have tried my best to do it but I can't. What I want is I can enter digits only. All the digits will be formatted…
air
  • 6,136
  • 26
  • 93
  • 125
0
votes
0 answers

How to set masked input to edittext in android?

Suppose i want to set masked input with 20 characters Example : 12345-12345-12345-12345 How can I do it there are only examples given for phone numbers masked input, iam new to android please help
0
votes
1 answer

Kendo UI DatePicker Custom Mask

I'm trying to make a masked DatePicker using Kendo UI. Fortunately i have found an example how to achieve this: http://docs.telerik.com/kendo-ui/aspnet-mvc/helpers/datepicker/how-to/masked-date-picker-grid Unfortunately i can't change the mask from…
0
votes
1 answer

Append prefilled character to input box

i need a jquery solution to pre-fill input box with values while user types.. For e.g if the user is adding a phone number like 1234567890 i need it to automatically change the text to (123)456-7890 as the user types,i is there any way we can do…
0
votes
0 answers

masked input plugin with variable argument

I'm using the masked input plugin to mask some zip code input fields. This works great for most circumstances, however I can't figure out how to mask a UK postcode. the problem arises because the UK pestcode has a spot that can have 1 or 2 digits.…
Abdul Ahmad
  • 9,673
  • 16
  • 64
  • 127
0
votes
1 answer

Yii2 MaskedInput with alias 'url' limits input to 60 characters

I am using the following code in Yii2: field($model, 'link')->widget(MaskedInput::classname(), [ 'clientOptions' => [ 'alias' => 'url', ], ]) ?>
Tibor Nagy
  • 1,185
  • 1
  • 15
  • 28
0
votes
1 answer

Mask Text is missing, when Setting .val(null) or .val('')

I'm using a date format, which naturally only allows numbers. I set up some shortcuts on such fields where 'd' or 't' defaults to current datetime, and 'c' clears back to null. When clearing via .val(null) or val(''), the text box ends up completely…
Kind Contributor
  • 17,547
  • 6
  • 53
  • 70
0
votes
0 answers

How can I update the pattern in masked input field in Drupal?

I am having the masked input field for US phone number in this pattern (999) 999-9999 and saved all data in this pattern now I am changing the pattern to 999.999.999 but when I change the pattern it's not getting updated in the filed. I added this…
DEVARAJ JOHNSON
  • 235
  • 3
  • 13
0
votes
1 answer

Input mask MVC unmask in controller

Im working in MVC 5.2 .NET 4.5: Can anyone point me to a js or other library / method for an input mask that will unmask and just send the entered data in the view model to the controller? Any .js library I've tried so far that can unmask, still…
clee
  • 121
  • 1
  • 8
0
votes
2 answers

Android how to make hint filling by typed text

I want show hint of EditText and when user enter text show part of entered and part of masked hint. Example i got hint like (___) ___-__-__ I want on EditText when user enter 985 446 EditText shows (985) 446-__-__ I can't found solutions. Look…
Dmitry Nelepov
  • 7,246
  • 8
  • 53
  • 74