I need to create an element from this html string:
<li class="station_li">
<span class="seq_num"></span>
<a href="javascript:void(0);" class="remove_li_link">delete</a>
</li>
Now, I have to use:
var li = document.createElement("li");
li.className = "station_li";
var span = document.createElement("span");
span.className............
............
this is really boring, is there any js library to make this easier?
NOTE: no jQuery please
I often cheat.