I wan't to change the color of a slider component based on it's value.
I can get its value on the on change event with something like:
codevar value = $(this).closest("input").val();/code
I can change the color of the value field with:
codeif (value === "1") {
$(this).css("color","red");
} else if (value === "3") {
$(this).css("color","blue");
} else if (value === "5") {
$(this).css("color","green");
}/code
What I would like to do is make it change the entire control