Although I am more focused on creating UI designs, I decided to take up some short courses to brush up on my JavaScript skills. However, I encountered a problem where I needed to create a dropdown menu with four color options: red, blue, green, and yellow. When a user selects a color, the div box below should change to that color. I implemented this using Bootstrap.
Here is a snippet of my code: ` Dropdown 1
<ul class="dropdown-menu">
<li id="red"><a href="#">Red</a>
</li>
<li><a href="#">Blue</a>
</li>
<li><a href="#">Green</a>
</li>
<li><a href="#">Yellow</a>
</li>
</ul>
` You can find the full code here http://jsfiddle.net/0c4dbr9t/7/