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

后端 未结 10 2024
陌清茗
陌清茗 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:20

    try this hope help you

    $("input[name=search-mini]").on("search", function() {
     //do something
    });
    

提交回复
热议问题