I am attempting to create a ul
, where each li
is set as contenteditable
and has a delete button positioned to the left of that li
.
My initial attempt looked like this:
<ul id='list'>
<li type='disc' id='li1' class='div' onkeydown='return func(event)' style='margin-left:0px;width:50%' contenteditable><button>delete</button></li>
</ul>
However, the button
ended up being the editable item within the li
instead of being positioned to the left.