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

Posted by Sharonc7 under jQuery on 10/18/2012 | Points: 10 | Views : 3580 | Status : [Member] | Replies : 2
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




Responses

Posted by: Rickeybglr on: 10/23/2012 [Member] Starter | Points: 25

Up
0
Down
please check for mask function in maskedinput.js file ist present or not?
or othr thing check ur location of js file.
this could only be the reason for error ur gettting

Sharonc7, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sharonc7 on: 10/23/2012 [Member] Starter | Points: 25

Up
0
Down
hi i checked to make sure that the mask function is in maskedinput.js and it is. I also checked the location of my js file and it looks good. i actually dragged it onto my page.

Sharonc7, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response