i have the following code
<div class="hitarea expandable-hitarea"></div>
<span class="folder">level 1</span>
<ul style="display: none;">
I wants to prepend the element
so the result would be
<div class="hitarea expandable-hitarea"></div>
<li><span class="folder">level 1</span></li>
<ul style="display: none;">
i have level 1 in javascript variable.
So i can’t use selector direct.
Can anyone tell me how can i perform above.
Thanks in Advance.
You can use jQuery
wrap: