jQuery event when HTML5 Datalist option is clicked

前端 未结 3 1040
醉话见心
醉话见心 2020-12-15 18:50

What I have now:

So i have this HTML5 Datalist with a bunch of options in it, and I have 2 events firing. One when the user types out something that

3条回答
  •  一生所求
    2020-12-15 19:36

    To handle click only event here is the solution.

    $("#book_search").bind('select', function () {
        alert("changed");   
    });
    

提交回复
热议问题