Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

@hanagejet

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

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 :)
})
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What are the problem?