User1644755831 posted
Hello,
var lixvar = angular.element("<span>").css('color', 'red').css('font-weight', 'bold').text(myarray[j]).wrap(angular.element("<li>"));
You are wrapping the li element but I don't see the closing tag of the li element. this could be the issue.
Below is a wrap example.
<div class="container">
<div class="inner">Hello</div>
<div class="inner">Goodbye</div>
</div>
Using .wrap(), we can insert an HTML structure around the inner <div> elements like so:
$( ".inner" ).wrap( "<div class='new'></div>" );
Result
<div class="container">
<div class="new">
<div class="inner">Hello</div>
</div>
<div class="new">
<div class="inner">Goodbye</div>
</div>
</div>
See http://api.jquery.com/wrap/
Hope this helps.
With Regards,
Krunal Parekh