jQuery UI combobox Ajax options

Posted by Mithun on Stack Overflow See other posts from Stack Overflow or by Mithun
Published on 2010-04-28T07:58:45Z Indexed on 2010/04/28 8:03 UTC
Read the original article Hit count: 508

Filed under:
|
|
|
|

Hi,

I need to customize the combobox widget build from the jQuery UI Autocomplete http://jqueryui.com/demos/autocomplete/#combobox

Currently drop down options are predefined from the SELECT tag OPTIONS or from a JSON array.

//getter
var source = $( ".selector" ).autocomplete( "option", "source" );
//setter
$( ".selector" ).autocomplete( "option", "source", ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"] );

I want to populate the combobox options from a Ajax URL, how can i customize the widget?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui