Delete row table if checkbox not selected

Delete row table if checkbox not selected

Hi,
First of all sorry for my bad english.

My problem is that I have a table with a column of checkboxes. When I click on a button I want to delete the rows with a checkbox unselected.

My script is that:


  1. $("#btnChecked").click(function()
  2. {
  3. if($("input.GarClaCheckBox[type=checkbox]").not(":checked"))
  4. {
  5. $("div.GarClasDiv tr.Clausola").toggle();
  6. }
  7. });
  8. });
Can you help me?

Thanks...!