The keyup and keypress events work for keyboard input, but if you use the mouse to right-click and paste something into the text field, then changing the value will not be raised. You can use bind with the input event to register both keyup and insert such events:
$("#textbox1").bind('input', function () { var stt = $(this).val(); $("#textbox2").val(stt); });
Rahatur
source share