Consider the HTML
<ul>
<li>Default item</li>
<li>Default item</li>
</ul>
<button>Append</button>
and the jQuery code
$('button').live('click', function(){ //This action is done by an external script.
$('ul').append('<li>Added item</li>');
});
$('ul li').append('<b> x</b>'); // This action is done by me
The thing is, I need to append the x mark to all newly added elements to the dom.
In this case only default elements are appended with the x mark.
Newly added elements are not appended by x.
I am sure the work will be simple, but cant get it right !!
Live example - http://jsfiddle.net/vaakash/LxJ6f/1/