jScript runtime error: Object doesn't support property or method 'mask'

Discussion in 'jQuery' started by sharonc7, Oct 18, 2012.

  1. #1
    Hi,
    I have the following code in my html page. It works if I test it with alert but when I try to run as is I get the error: Microsoft jScript runtime error: Object doesn't support property or method 'mask'

    <script src="Scripts/jquery-1.2.8.js" type="text/javascript"></script>
    <script src="Scripts/jQuery.maskedinput.js" type="text/javascript"></script>

    <script type="text/javascript">
    jQuery(document).ready(function($) {
    $("#txtCommercial").mask("(999) 999-9999");
    });
    </script>

    Can someone please help me on this?

    Thanks Sharon
     
    sharonc7, Oct 18, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    Are you sure that maskedinput.js is loading? That's where the mask method is. (Add an alert at the top of maskedinput.js or use Firebug to look for the mask code.)
     
    Rukbat, Oct 28, 2012 IP