JQuery IF statement issue

JQuery IF statement issue

i have this JQuery code,
  1. if ($('#lblProteinsApoklisi').val() >= 0) {
  2.                     $('#lblProteinsApoklisi').addClass('UnderStats');
  3.                 }
  4.                 else {
  5.                     $('#lblProteinsApoklisi').addClass('OverStats');
  6.                 }
if the textbox has a negative number i just put a background color of red, else a background color of red. No errors are shown but the .addClass doesnt seem to work. Thanks in advance.