I’m trying to add a function in that would make all text boxes a css .class if the value is 0.00. Here’s what I got…
$(':input[type="text"]').live
(function() {
if ($(this).val('0.00'))
$(this).toggleClass('fieldFocus');
});
What am I doing wrong here?
in this case you have to attach a focusout event to your inputs and
$(this).val() == '0.00'is the right condition to check