I use a JQuery Validation script for Validating HTML Form. this is perfectly work with Firefox but not work in IE8. I think there is issue with colon(;) or semi-colon(,)...but I am unable to catch.
please someone help me. code is here.
<script type="text/javascript">
jQuery.validator.addMethod(
"selectNone",
function(value, element) {
if (element.value == "")
{
return false;
}
else return true;
},
"Please select an option."
);
$(document).ready(function() {
$("#formElem").validate({
rules: {
Category:{ // "required",simple rule, converted to {required:true}
selectNone: true
},
Repair_technician:{ // "required",simple rule, converted to {required:true}
selectNone: true
},
Rework_technician:{ // "required",simple rule, converted to {required:true}
selectNone: true
},
Approved_by:{ // "required",simple rule, converted to {required:true}
required: true,
},
Part_code:{
required: true,
},
Part_value:{
required: true,
},
JOB_Number:{ // "required",simple rule, converted to {required:true}
required: true,
minlength: 9,
maxlength: 9
}
}
});
});
Thanks in Advanced