Possible Duplicate:
Bind jQuery UI autocomplete using .live()
I can't seem to figure this out. I believe that I will have to either use .load() or .on() but I can't figure out how to make either of them work.
So I have a Table with 3 Rows. When the users fills out the 3 rows I want to provide them with more.
Once they fill out the last row this script is called.
function addNewRow(id)
{
var qty = $('#qty' + id).val();
if (qty > 0)
{
$('#quickaddtable').append('<?php echo createRow(($i+1)); ?>');
}
}
The problem is that I am using autocomplete and for the newly created rows it's not working. I know that I need to reload DOM but I am just lost at how I can easily do this.
$(function(){
$(".id").autocomplete({
//My Code
});
});
I am sure this is a simple answer however almost all the examples showed .on("click",...)