how can i show jquery ui auto-complete categories list on focus event? -


i'm using jquery ui autocomplete categories widget.

how can show categories list on focus event?

here example http://jsfiddle.net/webspicer/pcf46/4/

i tried use following script show categories on focus event. but, doesn't work me.

$(this).data("ui-autocomplete").search($(this).val());  

please give me solutions asap?

autocomplete's search method display autocomplete results.

e.g. following code displays autocomplete upon focus:

$("#checkvalue").on('focus', function () {     $("#checkvalue").catcomplete("search"); }); 

here jsfiddle (with code linted/tidied).

let me know if works :)

p.s. recommend using jshint on code within jsfiddle, looks missing semi-colon , had comma..


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -