This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18778|Reply: 1

[Bootstrap] bootstrap input box association prompt

[Copy link]
Posted on 3/2/2017 5:11:56 PM | | | |


The bootstrap used for the interface wants to make an associative input of a city, for example: enter s to list the cities starting with s

That's not the point!! The point is that when I click on the content of Lenovo, I can put the ID corresponding to the content into the tag attribute of the text box!!

The renderings are as above!!

I use the bootstrap typeahead plugin, which has many versions of the plugin。。。。。

I use the version twitter-bootstrap-typeahead with the link: https://github.com/tcrosen/twitter-bootstrap-typeahead

Compared to other versions of the plugin, it is not very powerful, but it is enough for me.

Attached, my previous code:


JSON data







Previous:Maximum number of open connections reached.
Next:mvc UIHint encapsulates custom controls
Posted on 3/3/2017 9:58:01 AM |
See why there is still a word limit
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com