Using autocomplete with dinamical created form
I have some problem with using autocomplete.
I have form which describe company. The user insert information about this company into database. But different comanies have different amount of owners.
I create some function to give user posibility to add multiple owners via dinamical adding row into table. But autocomplete with new fields doesn't work
$(document).ready(function()
{
..............................
function addOwnerRow()
{
var count=$("#tbody > tr");
$("#tbody").append('<tr><td><input type="text" id="owner[' + count + ']"</td></tr>');
$("#owner[" + count + "]").autocomplete(
{
.................
}
}
addOwnerRow();
..............................
});
After creating new row I can see new input field, but there are no autocomplete styles in it and no XHR query was sent when I typing in this field