The HTML code:
<ul id="el">
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
How to create new element span inside li element on mouseover?
<ul id="el">
<li></li>
<li></li>
<li><span></span></li><!--on mouseover > new element span-->
<li></li>
</ul>
try with this:
if you want to remove the span on mouse out, then add this:
be careful as these are very naive implementations and are the bare minimum you need for it to work.