1. Supplementary events
<input type= "button" onclick= "Checkall (' #edit_mode ', ' #tb1 ');" value= "Select All" ><!--here the onclick event can we all pass in this, We can also pass in the class or id--> that we want to operate.
HTML code:
JS Code:
The value of select may be dynamic to the input library to fetch, after the completion of setting a global variable, we go to the global variable to fetch
Custom properties:
<tr> <td edit= "true" edit-type= "select" global-kay= "STATUS" ></td> <!--tags can be custom properties, Edit is used to determine if it can be edited, edit-type the user to determine if this tag needs to be replaced by what label, Global-kay user indicates where the select content is stored--></tr>
Replace the text of a label with a label in two ways, one with Apend and one with HTML
1, Inp_par_next_mone.append ("<input/>"); $ (Inp_par_next_mone). Children (). Val (mone_text) 2, var text = $ (this). Val () var tmp = "<input value= '" +text+ " > " $ (this). HTML (TMP)
There is a special way to create a SELECT tag:
var Selelct_tag = Createselect ({"onchange": "MultiSelect (this);"}, {}, Window[global_key], ' id ', ' value ', select_val);
Window[global_key]: Global_key The contents of global variables: Get global variables you can use status directly or use Window[args]
JQuery Preview Video