jQuery UI autocomplete select event not working with mouse click

前端 未结 9 835
星月不相逢
星月不相逢 2020-12-28 15:09

I have a list of links, and I have this search box #reportname. When the user types in the search box, autocomplete will show the text of the links in a list.



        
9条回答
  •  借酒劲吻你
    2020-12-28 15:38

    I was facing a similar problem. I wanted to submit the form when the user clicked on an option. But the form got submitted even before the value of the input could be set. Hence on the server side the controller got a null value.

    I solved it using a modified version of William Niu's answer.

    Check this post - https://stackoverflow.com/a/19781850/1565521

提交回复
热议问题