Kill Thunder Dog jquery---6 property selector

Source: Internet
Author: User

<!DOCTYPE HTML><HTML>    <Head>        <MetaCharSet= "Utf-8">        <title></title>        <Scriptsrc= "Js/jquery.js"></Script>        <Script>window.onload= function() {document.getElementById ('Btnok'). onclick= function(){                    //1. Match the element with the Size property                    //$ (' font[size] '). HTML (' Test ');                    //2. A font element that matches a size that has a property value equal to 7                    //$ (' font[size=7] '). HTML (' Test ');                    //3. Font elements that match attribute values not equal to 7                    //$ (' font[size!=7] '). HTML (' Test ');                    //4. Match attribute values to the font element starting with re                    //$ (' font[color^=re] '). HTML (' Test ');                    //5. Match the font element with the attribute value ending with UE                    //$ (' font[color$=ue] '). HTML (' Test ');                    //6. Match Color property contains BL's font element                    //$ (' font[color*=bl] '). HTML (' Test ');                    //7. Match a FONT element that has both a color and a size property                    $('Font[size][color]'). HTML ('Test'); }            }        </Script>    </Head>    <Body>        <inputtype= "button"ID= "Btnok"value= "Match" />        <HR>        <Font>First Font Property</Font>        <HR>        <Fontsize= "7">Second font element with a size property</Font>        <HR>        <FontColor= "Red">Third font element, with a color property</Font>        <HR>        <Fontsize= "5"Color= "Blue">Fourth font element with both a size and a color property</Font>        <HR>    </Body></HTML>

Kill Thunder Dog jquery---6 property selector

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.