I am working to create a tags with in some tags using java script(or JQuery). Below is the final output i would like to get and append some value and id in to that format.
<li class=" " >
<label for="SearchFr-option-0" title="" class="ui-lert ui-state-hover">
<input id="ui-multi-Filter-option-0" name="multiselect_measureFilter" type="checkbox"
value="100" title="Input Tags" checked="checked">
<span>Input Tags</span>
</label>
</li>
How can i achieve this. As i know i can generate the tags using var dateSpan = document.createElement('span'); var listTag = document.createElement('li'); but unable to achieve the whole html format li tag. Your suggestions are more valuable. Thanks in advance.
var html = 'HTML_HERE'and use jquery append method.