Reputation: 20686
This is driving me nuts. The jQuery validation plugin doesn't seem to be doing anything at all. Here's the code: http://jsfiddle.net/pkyGf/
This is the validate code which is causing the error.
<script>
$(function(){
$('#purchase').validate({
rules:{
course:{
minLength:1
},
creditCard: {
required: true,
creditCard: true
},
expMonth: {
required: true,
min: 1,
max: 12,
digits: true
},
expYear: {
required: true,
min: 12,
max: 60,
digits: true
}
}
})
})
</script>
Thanks to anyone who can help. EDIT: solved, see below.
Upvotes: 1
Views: 2253
Reputation: 7905
I thought id put it as an answer in case people are wondering.
The error occurs when any input is actually entered (i.e. when it tries to validate). This error is on line 29 of validate js file. The error is as follows: Uncaught TypeError: Cannot call method 'call' of undefined
.
From your comment above it seems this was due to using the wrong case on minlength attribute.
Upvotes: 2