Jquery - Validation Plug in - Help with Error Messages +
I can't get this to work. I'm ready to eat my keyboard, seriously. This "answer" seems to work for everyone but me, which leads me to believe that I'm a complete shmoe.
I need ALL error messages GONE. NOT THERE. ADIOS. IGNORED. All I want to do is stick a red border around the error input offender, which I've accomplished (with one exception, but I'll ask that after I have this thing answered/clarified)
Ok, now on to the code.
<script type="text/javascript">
$(document).ready(function(){
$("#pmpcontform").validate();
});
</script>
Above works just fine, however when I try to add the magical line, below, to remove all errors messages, validation is no longer there. It will simple head on out the door to a confirmation page telling me how nice it was of me to fill out the form.
<script type="text/javascript">
$(document).ready(function(){
$('#pmpcontform').validate({
errorPlacement: function(error, element) {
return true;开发者_如何学JAVA
});
</script>
I know. It's going to be some bracket I'm not seeing. Please tell me it's that.
Edit:
I see the 2 missing brakcets (it's the brakets, correct?) I have no idea where to close them. I've looked at 20 examples. The problem is I'm not familiar with JS. That, and I'm a Shmoe.
its some bracket you are not seeing ^_^ try this:
$(document).ready(function(){
$('#pmpcontform').validate({
errorPlacement: function(error, element) {
return true;
}
});
});
精彩评论