<div class="box">
<div class="text"></div>
<ul>
<li>1</li>
<li>...</li>
<li>N</li>
</ul>
</div>
The HTML structure is shown above, and the effect you want to achieve is that clicking on one of the LI will insert the currently clicked LI with < p class= "li-text" > text
< div class="text" > < / div >
and add a class="cur"
to the currently clicked li. You can only click li, up to three times and insert three into the text
. The question is, how do you finish inserting after you currently click li, and then click to delete the currently inserted content? Solution, thank you very much! ~