Even though I have experience with JavaScript, I am struggling to figure out a simple task.
Here is the list of items I need help with:
<div id="left-side">
<ul>
<li><div>Item 1</div></li>
<li><div>Item 2</div></li>
</ul>
</div>
<input id="addElement" type="button" value="->"/>
<div id="right-side">
</div>
Essentially, what I am looking to do is change the background color of the selected list item on the left when clicked. Then, upon clicking the button, move the selected item to the right div and revert the background color.
Though this seems like it should be straightforward, I am struggling to come up with a solution despite seeing similar implementations online numerous times.