
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Trigger Keypress with jQuery
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Trigger Keypress with jQuery
On the Definitive Trigger Keypress jQuery thread there is no working JSFiddle for the answer, and... On the Definitive Trigger Keypress jQuery thread there is no working JSFiddle for the answer, and the code that is there doesn't work for me. $("button").click(function () { $("input").focus(); var e = jQuery.Event("keydown"); e.which = 77; // # Some key code value $("input").trigger(e); }) There's my code and here's my fiddle http://jsfiddle.net/Z8adb/ On click, an M should appear in the input, a