autocomplete的select选项怎么用,官方没有说明?

解决方案 »

  1.   

    http://waiting.iteye.com/blog/714655lz  希望lz 可以先 问哈  谷哥  然后 在问哈  度姐   这样 比发帖效率 要高
      

  2.   

    你不信么,那我发给你看http://jqueryui.com/demos/autocomplete/#remote
    在options哪一项是没有select这个参数说明的
      

  3.   

    先点开View Source看样例源码
      

  4.   

    http://jqueryui.com/demos/autocomplete/remote.html 他这个是 一个单独的例子页面 你可以不可以把他 抠出来  做出来一个demo 这样不就行了吗
      

  5.   

    官方有说明的呀Triggered when an item is selected from the menu; ui.item refers to the selected item. The default action of select is to replace the text field's value with the value of the selected item. Canceling this event prevents the value from being updated, but does not prevent the menu from closing.Code examples
    Supply a callback function to handle the select event as an init option. 
    $( ".selector" ).autocomplete({
       select: function(event, ui) { ... }
    });Bind to the select event by type: autocompleteselect. 
    $( ".selector" ).bind( "autocompleteselect", function(event, ui) {
      ...
    });