Friday, 13 September 2013

Remove And Hide TD using script

Remove And Hide TD using script

Good Day I'm using Asp.net for my website and I want to remove and Hide
and specific td with class attribute
here is my html code
<table>
<tr>
<td class="1"> 1 </td>
<td class="1"> 1 </td>
<td class="2"> 2 </td>
<td class="2"> 2 </td>
</tr>
</table>
Now i have 2 button in my website named btn1 and btn2
if btn1 is click i want to remove ALL class with 1 and show only class with 2
And
if btn2 is click i want to remove ALL class with 2 and show only class with 1

No comments:

Post a Comment