I have a simple calculator with 2 tabs that i am building. One of those tabs are disabled with a class called .not-active. I want to remove that class when the value of #amount is > 195. However even though the if statement is in place it removes the class upon change of value, Even when value is < 195.
Here is my jquery function:
$(function() {
$( "#slider-range-min1" ).slider({
range: "min",
value: 40,
min: 5,
max: 700,
step: 5,
slide: function( event, ui ) {
$( "#amount" ).val( ui.value );
if ($('#amount').val() > "195") {
$('#l2').removeClass('not-active');
};
}
});
$( "#amount" ).val( $( "#slider-range-min1" ).slider( "value" ));
});