Javascript, jQuery - how signed actions to just created object?
<p>I am trying to make simple list with ability to add and delete elements. For now I am working on adding and performing a simple action on each of list elements object (existing and added). Unfortunately I have met some difficulties with that. I am able to modify objects that are created at the beginning, but not one added during "webpage working".</p>

<p>First of all my idea was to add AJAX to this, but I don't think it is the easiest way.</p>

<p>I think that some time ago (I don't remember where) I read how to make this work, but now I don't know. I would be really glad if someone would help me with this or at least give a link to good explanation of this.</p>

<p>There is what I have done so far (well this is mostly just a scratch, but the main idea is in it): <a href="http://jsfiddle.net/sebap123/pAZ7H/0" rel="nofollow">http://jsfiddle.net/sebap123/pAZ7H/0</a></p>

<pre><code>$("li").click(function() {
    $(this).text("new text");
});
$("#addButton").click(function() {
    $(".list").append(
    $('&lt;li&gt;').append($('&lt;span&gt;').append("added li")));
});​
</code></pre>

<p>Thank you for all responses.</p>
