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