/ / JQuery के सत्यापन समारोह के लिए गतिशील रूप से पास पैरामीटर - jquery

गतिशील रूप से jQuery के मान्य कार्य के लिए पैरामीटर पारित करें - jquery

मैं गतिशील रूप से email_i को मान असाइन करना चाहता हूं ......।

var v = $("#email_address").validate({
rules: { activation_code: {
required: true,
alphanumeric: true,
remote: "mail.php?action=activation_code&email="+**email_i**
}
},
messages: {
activation_code: {
required:       "Please input your activation code.",
alphanumeric:   "Only latin characters, numbers and _ sign are allowed.",
remote:         "Sorry, activation code is incorrect."
}
},
success: function(label) {
label.addClass( "formSuccess" );
label.html("<img src="/images/HelpOneAnother/giveNet/themes/givearang_1001/gfx/icons/ok.gif" border="0" >") ;
}
});

उत्तर:

जवाब के लिए 0 № 1

उपयोग rules("add") डॉक्स के अनुसार विधि:

http://docs.jquery.com/Plugins/Validation/rules#.22add.22rules

$("#emailFieldID").rules("add",{

ruleIwantForEmail: true
})