I'm trying to make something similar as in stackoverflow where you add keywords.
I'm just stuck with the HTML part or javascript?
When a keyword is found an clicked, how do i make it fixed in the input field? Like in stackoverflow it becomes blue with a remove button next to it.
Currently the results are being showed underneath the <input>
, in a new <div>
.
<fieldset>
<label for="title">Add keyword<label>
<input class="input" type="text" size="30" onkeyup="searchFunction()" onkeydown="searchFunction()">
</fieldset>
<div id="livesearch"></div>