I have question about jQuery. I have code below which works fine; it changes input border-color depending on its value, which is typed and entered. But
input
border-color
Just trigger the event:
$("input").change(function() { // ... }).trigger("change");
DEMO: http://jsfiddle.net/9B5SX/1/