开发者

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;
      }
   });
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜