i am new to jquery, i am working on a web page which needs generating text boxes dynamically with autocomplete facility.
i tested $(\"#some\")
The main issue i think is that you are calling the autocomplete outside of the click handler. So the autocompletion gets set up when the page loads, rather than when the button is clicked.
To resolve this, alter the code to read:
$(function() {
$("#button_newproduct").click(function() {
var newItem = $(" ");
$("#products_table > tbody").append(newItem);
var data = "Core celectors cttributes craversing canipulation CSS cvents cffects cjax ctilities".split(" ");
newItem.find('input').autocomplete(data);
});
});
Now the autocompletion is being set on each new item, rather than once, at the start.