LoginSignup
0
0

More than 5 years have passed since last update.

jQuery で iOS 標準機能 QuickType の値を取得する

Posted at

QuickType の値

図の赤い枠線

Group.png

取得方法

keyup だけでは取れないので、 input イベントを追加する必要がある。

// bad
$('input').on('keyup', function(e) {
  console.log($(e.currentTarget).val()); // empty value :(
})

// good
$('input').on('input keyup', function(e) {
  console.log($(e.currentTarget).val()); // getting value :)
})
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0