0

Hello all! I'm wondering how to do the relevant tags thing thats here below . I wanna add something like this for my website

for a multi category selecting option i provide in my website i wanna add UI like relevant tags here...how can I do that using HTML CSS JS ...thanks in advance!

10th Jul 2018, 6:29 AM
Code Exchange Network
Code Exchange Network - avatar
12 Respostas
+ 2
https://code.sololearn.com/W8MJ1x4qAmbr/?ref=app Is this what you mean? Do you need me to explain any part?
10th Jul 2018, 8:35 AM
James
James - avatar
+ 2
You can use this... <legend>Favourite Code</legend> <select id="favourite"> <option value="html">HTML</option> <option value="css">CSS</option> <option value="js">JavaScript</option> </select> Then in your Javascript, you can access it using... var favourite = document.getElementById("favourite"); var userInput = favourite.value;
10th Jul 2018, 8:06 AM
James
James - avatar
+ 1
Don't really understand your question, but guessing you're talking about meta tags. Have a read of this: https://www.w3schools.com/tags/tag_meta.asp
10th Jul 2018, 7:18 AM
Duncan
Duncan - avatar
+ 1
You should make a JavaScript function which uses the value to change something on the webpage. Then you can use onchange to call it. Like... <select id="favourite" onchange="myFunction();"> Otherwise make a button. <button onclick="myFunction();">Go</button>
10th Jul 2018, 8:18 AM
James
James - avatar
0
i want to know about relevant option given in q&a section. like we can type something and it will be added as block.,and we can continue
10th Jul 2018, 7:27 AM
Code Exchange Network
Code Exchange Network - avatar
0
then how to display without getting earlier out
10th Jul 2018, 8:07 AM
Code Exchange Network
Code Exchange Network - avatar
0
Can you ask that last bit using different words please? I don't understand.
10th Jul 2018, 8:09 AM
James
James - avatar
0
we are getting option value in var using id. then I wanna display result in block like it's done in questions tags(you can see green blocks with tags for relevance) like HTML,css etc for reference. after displaying one result in block, another selection must be displayed in another block in continuation without getting first one overwritten. sorry my English is no good . atleast in this situation.
10th Jul 2018, 8:14 AM
Code Exchange Network
Code Exchange Network - avatar
0
Need me to demo?
10th Jul 2018, 8:19 AM
James
James - avatar
0
that would be appreciated!
10th Jul 2018, 8:21 AM
Code Exchange Network
Code Exchange Network - avatar
0
You can contact me on here, but I'd rather not share further details, sorry. I just followed you. :)
10th Jul 2018, 8:57 AM
James
James - avatar
0
okay
10th Jul 2018, 9:01 AM
Code Exchange Network
Code Exchange Network - avatar