Are there any events available for the reset option for input search?

后端 未结 10 2025
陌清茗
陌清茗 2020-12-29 05:09

In HTML5 there is a new input type, \'search\'. On most browser it\'s just remain to a simple \'text\' input, but for webkit based browsers, it adds a little cross to reset

10条回答
  •  离开以前
    2020-12-29 05:13

    You can listen for the "input" event too, this is more generic than "search" event but still catches the reset option.

提交回复
热议问题