$('selector').autocomplete
        ({
        minLength: 0,
        source: function (t, r)
            {
            // get list here
            }
        })
    .focus
        (
        function()
            {
            if (this.value == "")
                {
                $(this).autocomplete('search', '');
                }
            }
        );

 

感谢:http://www.sikosoft.com/item/activate_jquery_autocomplete_on_focus

相关文章:

  • 2022-12-23
  • 2022-01-31
  • 2021-12-03
  • 2022-12-23
  • 2021-08-22
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-22
  • 2021-11-19
  • 2021-11-06
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案