JQuery gives "Microsoft JScript runtime error: Object doesn't support this property or method" when run -
i using jquery plugin input mask text box. textbox , jquery part of custom user control , added dynamically repeater control, part of wizard step , control.
however, when reach step repeater , user control jquery added, jquery throws following error: "microsoft jscript runtime error: object doesn't support property or method".
all code this:
<script src="../../scripts/jquery.js" type="text/javascript"></script> <script src="src="../../scripts/jquery.maskedinput.js" type="text/javascript"></script> <script language="javascript" type="text/javascript"> jquery(function($){ $('#<%= date.clientid %>').mask("99/99/9999"); }); </script> <asp:textbox id="date" runat="server"/>
so, stuck why getting problem. can me, because no know why should getting error.
thanks
it's invalid <script>
tag, this:
<script src="src="../../scripts/jquery.maskedinput.js" type="text/javascript"></script>
should be:
<script src="../../scripts/jquery.maskedinput.js" type="text/javascript"></script>
since tag's malformed, plugin isn't being executed, .mask()
isn't method jquery objects have in page...once fix <script>
include it'll fix issue.
Comments
Post a Comment