JQuery Preview Video

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.