javascript - How to check permanently textbox value change -
i need regarding monitoring textbox value change.
here's scenario: have form has textbox filled out javascript calendar. choose date calendar populates textbox date. however, textbox never gets focus. now, need check value placed in textbox textbox gets info calendar. reason need compare dates , verify date 2 not lower date 1.
onchange
, onblur
, onkeyup
events not work i'm trying do. mean, work if use not need.
i have tried code reason event never fires or never detects change.
here's example of i'm trying do:
$('#date2').bind('input', function() { /* fired every time, when textbox's value changes. */ } );
and
jquery('#date2').on('input', function() { // stuff });
is there way that? appreciated.
if don't need support older browsers, can use mutation observers that.
Comments
Post a Comment