- //使用jQuery实现
- $("#myform :input").change(function() {
- $("#myform").data("changed",true);
- });
- //提交前判断
- if ($("#myform").data("changed")) {
- // submit the form
- }
- //该片段来自于http://www.codesnippet.cn/detail/0707201513035.html
来源: http://www.codesnippet.cn/detail/0707201513035.html