Please help Angular | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Please help Angular

I have to div show hide on the basis of drop down selection can anyone help me for this. <selectĀ id="mydiv"> Ā Ā <optionĀ value="music">Music</option> Ā Ā <optionĀ value="picture">Picture</option> Ā Ā <optionĀ value="content">Content</option> </select> <div id="music"> </div> <div id="picture"> </div> <div id="content"> </div>

7th Mar 2020, 4:47 PM
swarup
swarup - avatar
1 Resposta
0
I don't how it's done in Angular, but in general you evaluate the selected dropdown option value, and use that to decide which of all the divs is supposed to be shown or hidden. Just passing off an idea.
7th Mar 2020, 5:33 PM
Ipang