checkbox label style updating then reverting

checkbox label style updating then reverting

I have a script which is supposed to be adding a class when a checkbox in a checkboxlist is checked and removing it when the checkbox is not selected. When I click a checkbox the style IS added BUT it immediately changes right back. Here is the script.
  1.  $(document).ready(function () {
  2.                 $("#cbxarea input[type=checkbox]").click(function () {
  3.                     if ($(this).is(":checked")) {
  4.                         $(this).siblings("label").addClass("checkboxselected");
  5.                         } else {
  6.                         $(this).siblings("label").removeClass("checkboxselected");
  7.                     }
  8.                 });
  9.             });