Chained syntax for jquery HTML tags

Source: Internet
Author: User

<div id= "Productnet" >
<table border= ' 0 ' cellspacing= ' 2 ' cellpadding= ' 0 ' style= ' text-align:center; width:674px; ' >
<tr>
&LT;TD class= ' Pnettd ' >
Date type
</td>
&LT;TD class= ' Pnettd ' >
Update Date
</td>
&LT;TD class= ' Pnettd ' >
NET value of trust unit (yuan)
</td>
&LT;TD class= ' Pnettd ' >
Current net growth rate
</td>
&LT;TD class= ' Pnettd ' >
Cumulative net worth growth rate
</td>
</tr>
</table>
<table border= ' 0 ' cellspacing= ' 2 ' cellpadding= ' 0 ' style= ' text-align:center; width:674px; Display:none; ' >
<tr>
&LT;TD class= ' pnettd ' style= "width:16%;" >
Date type
</td>
&LT;TD class= ' pnettd ' style= "width:16%;" >
Update Date
</td>
&LT;TD class= ' pnettd ' style= "width:20%;" >
NET value of trust unit (yuan)
</td>
&LT;TD class= ' pnettd ' style= "width:16%;" >
Current net growth rate
</td>
&LT;TD class= ' pnettd ' style= "width:16%;" >
Cumulative net worth growth rate
</td>
&LT;TD class= ' pnettd ' style= "width:16%;" >
Cumulative net Worth
</td>
</tr>
</table>
<table border= ' 0 ' cellspacing= ' 2 ' cellpadding= ' 0 ' style= ' text-align:center; Width:674px;display:none; ' >
<tr>
&LT;TD class= ' Pnettd ' >
Date type
</td>
&LT;TD class= ' Pnettd ' >
Update Date
</td>
&LT;TD class= ' Pnettd ' >
NET value of trust unit (yuan)
</td>
&LT;TD class= ' Pnettd ' >
Unit cumulative net Worth
</td>
&LT;TD class= ' Pnettd ' >
Cumulative net worth growth rate
</td>
</tr>
</table>
</div>

jquery chain Syntax sugar

if (a = = 36) {
$ (' #ProductNet table '). Hide (). EQ (1). Show ();
}
else if (a = = 35) {
$ (' #ProductNet table '). Hide (). EQ (2). Show ();
}
else {
$ (' #ProductNet table '). Hide (). EQ (0). Show ();
}

Chained syntax for jquery HTML tags

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.