javascript - How to allow only backspace and movements in a text area -
I am looking for a jquery function which allows an movement with an arrow key and backspace in just one lesson But the arrow keys do not work properly.
Function stepAro (E) {if (EHICAT = 37 & AH.K. and LT; = 40) { Return; } return false; } $ (Document) .ready (function () {$ ('#installId') .presspress (function (e) {return deleteItem (e, false)}) $ ('#installId') keydown (function) { Return withdrawal (E, false)}) $ ('# installID'). Keypress (function (e) {return step arrow (e)}); $ ('#installId') keydown (function (e) {return step arrow (e)})}}; You must stop the default by pressing the other key
$ ('# installId'). Keypress (function (e) {if (e.which & lt; 37 || e.which & gt; 40) e.preventDefault ();});
Comments
Post a Comment