jQuery UI combobox Ajax options -
i need customize combobox widget build jquery ui autocomplete http://jqueryui.com/demos/autocomplete/#combobox
currently drop down options predefined select tag options or json array.
//getter var source = $( ".selector" ).autocomplete( "option", "source" ); //setter $( ".selector" ).autocomplete( "option", "source", ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"] );
i want populate combobox options ajax url, how can customize widget?
there demo on how via ajax, should make sure array json encoded before returned autocomplete component.
if you're using php, take @ json_encode
function.
does answer question?
Comments
Post a Comment