Topic: Using mdb autocomplete with jquery autocomplete

prashant558908 pro asked 7 years ago


Hi, Some where it was mentioned that "MDB is based on jQuery, so we can use jquery autocomplete plugin " . Now suppose whenever autocomplete get focus, I want to fire the search event as mentioned here: http://api.jqueryui.com/autocomplete/#method-search I am trying something like this : var states = [ "Alabana", "Alaska", "Arizona", "Arkansas", "California"] $('#state_autocomplete').mdb_autocomplete({ data: states, minLength: 0, delay: 0 }); $('#state_autocomplete').on('focus', function() { console.log(" mouse inside autocomplete"); // this line executes fine $( "#state_autocomplete" ).autocomplete( "search", "" ); // this gives error }) but its giving error: Uncaught TypeError: $(...).autocomplete is not a function Can someone help me how can I use the above event and also other functionalities from jquery autocomplete https://jqueryui.com/autocomplete/

Edyta Dabrowska free answered 7 years ago


Hello, currently our autocomplete doesn't have search and other jQuery methods. We will consider this in the future. Best regards,

eydun pro commented 6 years ago

Any news on autocomplete in MDB?

lawrence tang pro commented 5 years ago

so have you consider this yet ? i had purchased version jQuery Pro but i still don't get this autocomplete to work properly. it is just dummy UI display only .. where is AJAX result ? and on SELECT event ?


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No