Home > front end >  About the FORM FORM the execution of the problem
About the FORM FORM the execution of the problem

Time:11-15



Var validateForm;
Var $table;//parent page table form id
Var $topIndex;//pop-up window index
Var $printFun;//parent page print method
The function doSubmit (table, index, printFun) {//callback function, in the edit and save gesture, for openDialog call form is submitted,

$table=table;
$topIndex=index;

.
return false;
}

The $(document). Ready (function () {
ValidateForm=$(" # inputForm "). The validate ({
submitHandler : function (form) {
Jp. Post (" ${CTX}/elec/emElectricitySell/sell ", $(' # inputForm). Serialize (), function (data) {

})
},

});

</script>

<body & gt;
inputForm "modelAttribute=" emEl "& gt;

,,,,,,,,,,,,,




the above code when inputForm form is submitted to be executed doSubmit or submitHandler

CodePudding user response:

Look from the code, after page load performs binding submitHandler, so should be executed submitHandler corresponding code, and the doSubmit didn't see a call in this code
  • Related