Questions tagged as 'jquery-masked-input'

5
answers

JS Mask for Validation of Hours

I'm using jQuery Masked Input in a project. I made a mask like this: <script> $(document).ready(function () { $("#QuantidadeHoras").mask("99:99"); }); </script> The <input> only lets me fill in the...
asked by 25.06.2015 / 02:36
1
answer

optional character in mask with Jquery maskedInput does not work

In a form that I am developing, one of the fields that the user needs to fill is the cell phone, and since some regions of Brazil have 9 digits, I am using the jQuery MaskedInput to format the data entry. The problem is that when I create t...
asked by 20.08.2015 / 14:27
1
answer

jQuery Masked Input - Is it possible to recover the mask attached to the field?

I'm using jQuery Masked Input Plugin with jQuery Validation Plugin . When a form field loses focus, the validation plugin shows a message, but this is not happening with the fields that are have masks, perhaps because the blur event happens a...
asked by 26.02.2014 / 21:32
3
answers

Mask for Input HTML5 fields

I'm applying a masking addition feature on my code, even when the user fills in the phone or mobile, the chewing will be populated automatically. However, my page does not return anything as the user types. <head> <!-- Required meta t...
asked by 28.01.2018 / 22:58
1
answer

InputMask for DisplayFor

I use jQuery Inputmask to add masks to my TextBox. But I need to add a mask when listing these fields (phone, cpf, etc). I use DisplayFor to list, but the mask does not work with it. Code in my View: Cargo: @Html.DisplayFor(...
asked by 22.01.2015 / 13:13
4
answers

maxlength in currency mask

I'm using this currency mask, it works fine even though putting a maxlength into input does not limit the number of numbers. <script language="javascript"> function MascaraMoeda(objTextBox, SeparadorMilesimo, SeparadorDecim...
asked by 06.12.2017 / 20:59
4
answers

Phone and CPF masks in TextField

How can I put phone and CPF masks in text_field ? In app / views / layouts / application : <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.maskedinput.js">&l...
asked by 06.03.2015 / 03:52
1
answer

Count characters of an input ignoring the maskedinput

I have a script to advance the cursor to the next field of a form when the current field reaches its character limit (< a href="https://en.stackoverflow.com/a/111959/33193"> font ). When I tried to put the maskedinput gave problem, because...
asked by 12.02.2016 / 13:59
1
answer

Problem to apply a jQuery mask to a modal

I have a modal in HTML and there are two text fields that should receive dates, I'm trying to apply a mask using jQuery to those fields, but I was not successful, the mask usually applies when the fields are not part of the modal . HTML code:...
asked by 28.12.2016 / 13:01
1
answer

jQuery mask does not read innerHTML

I'm having trouble generating mask reading (jQuery) on elements generated via innerHTML . Only validator works and after trying to insert a data outside the mask it loads the page with the mask. Here's the mask: <script>...
asked by 25.04.2014 / 21:30