1. Using disabled
Input, button textarea can be disabled,
Effects disabled: 1) The above click events are not available
---
Button: The following OnClick property is not available.
-------------------------
Input
------------------------------
TextArea
2. Input, Textaere displays the previously populated values;
Input: Write on the Value property.
--------------------------------------
TEXTAREA: No value attribute. <textarea> Write here </textarea>
3 using disabled input, textarea submitted without this disabled option.
The above input + textarea is a total of 59,
Only audit 57 is not disabled.
Look at the results of the submission:
4. Submission of Jquery.form.js's ajaxsubmit.
Html:
Js:
1 functionSubmitsy (Taskandjzid, node, Thekey)2 {3 //to remove a bound event:4 $ ("#sy" +taskandjzid). Off ("submit");5 6$ ("#sy" +taskandjzid). Submit (function(event) {7 /*Act on the event*/8$( This). Ajaxsubmit ({9URL: "Action.php?c=htaskproxy&a=submitsy" + "&taskandjzid=" +taskandjzid+ "&thekey=" +Thekey,TenType: "POST", OneDataType: "JSON", ASuccessfunction(data) { - if(Data.code = = 0) { - //base.msg ("Error", "Add Failed"); theMsgpic (0); -}Else { - //base.msg ("Success", "add Success"); -Msgpic (1); + } - + //$ ("#sy" +taskandjzid). Find (". Score"). HTML ("score:" + data.total); A //$ ("#sy" +taskandjzid). Find (". Scorearea"). Removeclass ("Hide"); at } - }); - return false; - }); - in}
Attention:
The 4th line removes the previous binding's Submit event,
Line 26th, block the default action for the form.
Input, button, textarea 1) using disabled, 2) display value, 3) Form submission. 4) Jquery.form.js Ajaxsubmit () No Flush Ajax submission form.