- Where Developers Learn, Share, & Build Careers


This question can not be answered, but it may be because it is very easy. I'm trying to use an autocomplete based on the Jquery UI and I'm using their remote Jason data source where you type in something and pulls a list of data from a source. However, when you click on Autocomplete, it does not fill the data in your textbox even if they archive the callback. Thinking about how to configure it so that you click AutoComplete, it automatically completes it for you.

Try this type of

  $ (".selector" ). Autocomplete ({select: function (event, ui) {...}});   

You can select the value in "ui.item"

You want to fill the same text box with the selected value

  $ (this) .value = ui.item.label   

The selection inside the function

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -