我在我的 rails 应用程序中使用 jQuery 实时验证进行 twitter 引导程序( https://github.com/ddarren/jQuery-Live-Form-Validation-For-Twitter-Bootstrap )。我想从字段中删除验证特定条件。前任:
if(project=='Fixed'){
$("#project_price").validate({
expression: "if(VAL != '') return true; else return false;",
message: "Price is required."
});
}
else{
//Disable validation for price field
}
谁能建议如何删除/禁用 jQuery 实时验证?