Monday, 15 August 2011

php - Table row delete using jquery -



php - Table row delete using jquery -

i have made code remove table row :

jquery('tr#rowattend1').remove();

html :

three rows same id . illustration :

<tr id="rowattend1" ><td>ssss</td></tr> <tr id="rowattend1" ><td>ddddd</td></tr> <tr id="rowattend1" ><td>ccccc</td></tr>

but want 3 removed works fine in browsers except ie7 ? can help me?

<tr id="rowattend1" ><td>ssss</td></tr> <tr id="rowattend2" ><td>ddddd</td></tr> <tr id="rowattend3" ><td>ccccc</td></tr> $('#rowattend1,#rowattend2,#rowattend3').remove();

change ids unique ids , can remove table row

class example

<tr class="rowattend1" ><td>ssss</td></tr> <tr class="rowattend1" ><td>ddddd</td></tr> <tr class="rowattend1" ><td>ccccc</td></tr> $('.rowattend1').remove();

this remove elements class rowattend

php jquery

No comments:

Post a Comment