jquery section--Web effects time relationship not finished, waiting for update

Source: Internet
Author: User

I. Finding ELEMENT nodes

1./* Basic Selector, find DOM object by id,class element */

class= "AA" >222</div>

Alert ($ ("#aa").  HTML ()); Alert ($ (". AA"). html ());

2./ * Hierarchy selector, find the P element in Div * /

<div><p>11</p></div>        <div><p>22</p></div>        <div> <p>33</p></div>
/* $ ("div>p"). html ();   Find the P element  in a div $ ("div p"). html (); Find the P element in a div

3./* filter selectors, such as finding the first and last elements in a Div, the child elements in the first Div, and the last child element */

        <div>11</div>        <div>22</div>        <div>33</div>        <div>44</ Div>
/        *alert ($ ("Div:first"). html ());        Alert ($ ("Div:last"). html ());        Alert ($ ("Div:first-child"). html ());        Alert ($ ("Div:last-child"). html ()); */

4./* form selector */

<input type= "Radio" name= "AA" id= "AA" value= ""/>        <input type= "Radio" name= "AA" id= "AA" value= "        /> <input type= "checkbox" Name= "BB" id= "BB" value= ""/>                <select name= "AA" >            <option value= "" > </option>        </select>-->
/        *$ ("input:checked"). Val ();  Gets all selected radio and check buttons for table cell        $ ("select:selected"). Val (); Gets the value values selected in the drop-down menu * /

5. No need to select a list

<ul>            <li>111</li>            <li>222</li>            <li>333</li>            < Li>444</li>        </ul>
Alert ($ ("ul Li:eq (1)"). text ());

Two

jquery section--Web effects time relationship not finished, waiting for update

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.