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.