JQuery IF statement issue
i have this JQuery code,
- if ($('#lblProteinsApoklisi').val() >= 0) {
- $('#lblProteinsApoklisi').addClass('UnderStats');
- }
- else {
- $('#lblProteinsApoklisi').addClass('OverStats');
- }
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.