Hi, Try this var xxx = 5; $('input:attr[value="'+xxx+'"]').parents('tr').remove();
Paul On May 11, 8:37 pm, Massimiliano Marini <m...@linuxtime.it> wrote: > Sorry, > > the right question is: > > How can I remove the entirely row containing the checkbox with the value for > example 5? > > The value is returned to me by a PHP script, and of course is always > different. > > <table> > <tr class="mouseOver"> > <td><input type="checkbox" value="1" name="chk[]"/></td> > <td>foo</td> > </tr> > <tr class="mouseOver"> > <td><input type="checkbox" value="5" name="chk[]"/></td> > <td>foo2</td> > </tr> > <tr class="mouseOver"> > <td><input type="checkbox" value="10" name="chk[]"/></td> > <td>foo2</td> > </tr> > </table>