Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stack Overflow Question Tag Textbox

I'm looking to implement something similar to the Tags textbox on Stack Overflow.

Ideally, the tag suggestions will come directly from the database or else be loaded straight from the database and multiples can be selected. I'd like to be able to insert values to the database if they're not contained in the dataset.

Anyone have any good implementations of this that I can refer to?

like image 412
Alistair Mitchell Avatar asked Oct 10 '22 05:10

Alistair Mitchell


2 Answers

You can use JQuery Autocomplete plugin.

Documentation of Autocomplete

Demo for Autocomplete

like image 159
emre nevayeshirazi Avatar answered Oct 13 '22 09:10

emre nevayeshirazi


This plugin looks like it might do the job: http://loopj.com/jquery-tokeninput/

Disclaimer: I've never used it, and have made the above statement based on face value only.

like image 35
Shawn Chin Avatar answered Oct 13 '22 09:10

Shawn Chin