I have a text box in which value is 0 when page loads and I want if there is a 0 value in any numeric box, I want its background color to be changed on page load.
I want to do it using jquery only.
My code for this is not working, please find the demo link below and suggest on mistakes.
http://jsfiddle.net/ph43cuhj/1/
Below is my code:
$(document).ready(function(){
if($("input:text").val()=='0')
$(this).css('background-color','#c0c0c0');
});