How can I replace - undefined
with or remove it entirely?
substr()
is not a good idea because 'name'
is always changing value. Please help.
<li>name - undefined</li>
<li>name - undefined</li>
<li>name - undefined</li>
<li>name - undefined</li>
<li>name - undefined</li>
here is my code...
$.each(item.mguest,function(i,item)
{
$(".males-list li").first().after('<li class="mlist"><img src="icon/delete.png" title="REMOVE" class="delete-input" style="visibility:hidden;"/>' + item + '</li>')
});