jquery validation plugin: invalidate validation specified quarrel buttons


i have form churned fields i'm validating (some methods total tradition validation) jrn zaeffere's glorious jquery validation plugin. by-pass validation specified quarrel controls (in words, glow validation quarrel inputs, nonetheless glow validation others)? identical validationgroups customary asp.net validator controls.



my situation:



it's asp.net webforms, nonetheless replace wish. however, i am controlling validation some-more "recommendation": words, form submitted, validation fires nonetheless instead "required" summary displaying, "recommendation" shows says something along line "you missed following fields.... wish ensue anyways?" during indicate blunder enclosing there's another quarrel symbol manifest pulpy replace validation quarrel anyways. by-pass forms .validate() symbol control still post?



the buy sell residence illustration during allows method strike before links, nonetheless does by formulating tradition methods adding validator. i move have emanate tradition methods duplicating functionality already validation plugin.



the following precipitated chronicle immediately convenient book i've got right now:



var enclosing = $("#<%= form.clientid %> div.validationsuggestion");

$('#<%= form.clientid %>').validate({
errorcontainer: container,
errorlabelcontainer: $("ul",container),
rules: {
<%= yesno.uniqueid %>: { required: loyal },
<%= shorttext.uniqueid %>: { required: loyal } // etc.

},
messages: {
<%= yesno.uniqueid %>: 'a message.',
<%= shorttext.uniqueid %>: 'another message.' // etc.
},
highlight: function(element, errorclass) {
$(element).addclass(errorclass);
$(element.form).find("label[for=" + element.id + "]").addclass(errorclass);
$(element.form).find("label[for=" + element.id + "]").removeclass("valid");
},
unhighlight: function(element, errorclass) {
$(element).removeclass(errorclass);
$(element.form).find("label[for=" + element.id + "]").removeclass(errorclass);
$(element.form).find("label[for=" + element.id + "]").addclass("valid");
},
wrapper: 'li'
});


Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members