How to reference a dynamically created text box
<p>Using Javascript or jquery, how would I reference some text boxes which were dynamically created.
I have the following javascript which references one text box, but when the other text boxes are created, they have different id's. Any ideas's?</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(function(){
    $('#lst_vat').change(function(){

  var inpvat = $('#lst_vat').val();
        $.ajax({
            type:'POST',
            data:({id : inpvat}),
            dataType:'json',
        url:"phpcode/get_vat_rate.php",
        //url:"ajax_product_list.php",
        success: function(data){
            $('.results').html(data);
             $('#txt_line_vat').val(data.vat_rate_value);    
            }
        });
    });
    });
&lt;/script&gt; 
</code></pre>
