JQuery with mask plugin not working in Chrome

Im using JQuery Mask Plugin: http://plugins.jquery.com/mask/

My script:

<script type="text/javascript" language="javascript">
            $(document).ready(function () {
                $(".txtday").mask('Z99', { reverse: true, translation: { 'Z': { pattern: /[0-1]/, optional: true}}, placeholder:"%" });
            });
        </script>

<asp:TextBox runat="server" ID="txtday0" Width="25" CssClass="txtday" />

      

Works fine in IE 11, but in Chrome it just displays as a normal textbox without a mask.

Im coding asp.net using Visual Studio 2010.

If anyone knows about this. Thanks in advance.

+3
javascript google-chrome jquery-plugins asp.net jquery-mask


source to share


No one has answered this question yet

See similar questions:

452
jQuery $ (document) .ready and UpdatePanels?

or similar:

7649
How does JavaScript blocking work?
7428
How can I check if an element is hidden in jQuery?
4523
Thinking in AngularJS if I have a jQuery background?
3952
Setting "checked" for a checkbox with jQuery?
2644
Is there a function "exists" for jQuery?
2302
Add table row in jQuery
2101
jQuery scroll to element
1957
Disable / enable input with jQuery?
1554
Disable Chrome cache for website development
1403
Disable Same Origin Policy in Chrome



All Articles
Loading...
X
Show
Funny
Dev
Pics