You can also add/force an event to manage the process.
For an example, I have one place where I add and autocomplete to an added item.
I manage the "change" event thus (inside a .change() function):
$(this).change(); // fire change event (to be used in other user controls)
Then I call a function inside a change event handler for the specific item which has an autocomplete in it to add it to that item.
There are other ways, my circumstance dicated I do this manually as I am manipulating a complex newly added section, not just a table row.
/* apply autocomplete function */
function myAddAuto()
{
$(".cptEntryArea").autocomplete("mywebservice/myService.asmx/GetMyAutocomplete", {
dataType: 'json',
data: {},
type: "POST",
contentType: "application/json; charset=utf-8",
parse: function(data) { return myAutocompleteJSONParse(data); },
maxRows: 100,
formatItem: function(row) { return row["Description"] + ' (' + row["MyCode"] + ')' },
minChars: 2,
matchSubset: false,
scrollHeight: 100,
width: 300
});
};
There are other ways, but the basic premise is the same - add the handlers to the newly added entity within the row you add to the table.