Jquery 验证form表单是否修改

//使用jQuery实现
$("#fm :input").change(function() {
    $("#fm").data("changed",true);
});
 
//提交前判断
if ($("#fm").data("changed")) {
 // submit the fm
}
相关文章
相关标签/搜索