I’m getting the following error when I use this piece of script:
<script type="text/javascript">
$(function() {
$('form').validVal(); // line 37
});
</script>
Error:
“Object doesn’t support this property or method” – Line 37, Char 4
Can anyone explain how I fix this?
Is this a common error with IE/IE8?
Thanks for any pointers
Before you can use
validValmethod, you need to make sure to include thevalidValplugin:Second, check the selector – the way it is now it will apply this to every
formelement on the page. You probably want to add something likeid="myForm"to yourform elementand then use