CopyCode The Code is as follows: <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> </title>
<Style type = "text/CSS">
</Style>
<SCRIPT src = "jquery-1.9.1.js" type = "text/JavaScript"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
$ (Function (){
$ ('# button1 '). click (function () {
// set the style and animation effect for all elements with the ID attribute
// $ ('div [title] '). hide (3000);
// $ ('div [Title = T1] '). hide (3000);
// $ ('div [title! = T1] '). hide (3000);
// The attribute value starts with T
// $ ('div [Title ^ = T] '). hide (3000
// $ ('div [Title $ = 1] '). hide (3000);
// $ ('div [Title * = T] '). hide (3000);
// The id value starts with D, the title value ends with 3
$ ('div [ID ^ = D] [Title $ = 4] '). hide (3000);
})
Layer 1
Layer 2
Layer 3
Layer 4