javascript - OnChange event not triggered -
i trying achieve convert uppercase while user type attaching following function on key up.
function changecharcase(evt,obj,upper) { if(obj.value != obj.value.touppercase()) obj.value = obj.value.touppercase(); return true; }
that seems working fine until attach on change event input text, , figured out , on change event not triggered @ on ie 11 , chrome . on firefox, seems okay.
you can check case here.
http://jsfiddle.net/zt8oqaw5/4/
you see , onchange event never triggered on first input text on browsers mentioned above.
does know why?
how can achieve character case conversion ? can't set css here because want value changed actually, not display.
personally use onkeyup or onblur instead of onchange text boxes. maybe can give try.
Comments
Post a Comment