I am using jquery on asp.net mvc. I have a text box on the page and I bowed the handler to the keyboard of the text box. When the user removes the text or pastes the text in it, then I say that the handler is not found.
Please
Edit: I want to get the value of the user even while pasting the value using the mouse.
& lt; Input type = "text" id = "mytextbox" /> & Lt; Script type = "text / javascript" & gt; $ {Document} .ready (function () {$ ("# mytextbox") key (function (evt) {evt = evt} event; switch (evt.keycode) {case 8: // Backspace alert was pressed (" Case 67: If (evt.ctrlKey) {Warning ("Ctrl-C");} Pause; Case 86: If () (Warning); Evt.ctrlKey) {Warning ("Ctrl-V");} Pause; Default : Warning (evt.keyCode); break;}}}}}; & lt; / script & gt;
Comments
Post a Comment