Dynamic text box list
<p>I am trying to make a text box list using jquery. What I want is to have text that changes into a textbox when clicked. Then I want it to return to text afterwords. My problem is getting the dynamically created textboxes to focus, change the textbox text, be removed and change the text. This is my code:</p>

<pre><code>$('.l').click(function() {
    $('&lt;input type="text" id="ltb"      class="'+$(this).attr("class")+'"&gt;').insertAfter($(this)).val($(this).val());
    $('#ltb').focus();
    $(this).remove();
})
$('#ltb').blur(function() {
    $('&lt;div id="'+$(this).attr("class")+'" class="l"&gt;'+$(this).val()+'&lt;/div&gt;').insertAfter($(this));
    $(this).remove();
});
</code></pre>

<p>.l is the text while #ltb is the textbox. I need the #ltb to change value, focus, and be removed. I need .l to change once #ltb is removed. Can someone tell me how to do this?</p>
