Trigger a keypress with jQuery…and specify which key was pressed

前端 未结 2 1853
清酒与你
清酒与你 2020-12-06 08:32

I would like to have an input element (type=text) or textarea element that validates dynamically by triggering specific keystrokes. This will be used for Chinese pinyin inp

2条回答
  •  猫巷女王i
    2020-12-06 09:09

    Also, for simple code controlling the "caret" in a cross-browser way this could be useful:

    http://javascript.nwbox.com/cursor_position/

    a bit late with the answer but I am sure you will still find this old stuff useful.

提交回复
热议问题