/**
* 提交表单数据
*/
function submit() {
var data = {};
var formInfo =$('#formId').serializeArray(); //$.serializeArray()会过滤掉被禁用的元素
$("img").each(function () {
data[this.name] = this.value;
});
$.each(formInfo, function () {
data[this.name] =this.value;
});
$(":disabled").each(function () {
data[this.name] =this.value;
});
data.id = id;
ajaxUtils(insertApi, 'post', 'true', data, function () {
}, function (result) {
if (result.success) {
alert("您已提交信息!");
}else {
alert(result.message);
}
}, function () {
});
}