I am using grails richui autocomplete
field in my app.
It works fine for my static textbox but when I clone the textbox this feature is not working for the cloned textboxes and it shows no error even.
Any idea of how to fix this
Here is my code:
<resource:autoComplete skin="default" />
at top
<richui:autoComplete name="filterLocation1" id="filterLocation1" delimChar=";" class="location_txtbox" action="${createLinkTo('dir': 'abc/yyy')}" style="margin-left:5px;"/>
This is my autocomplete field
and I am cloning like this
var counter = 1;
$("#addRow").click(function() {
counter++;
var cln = $('#static_table tbody>tr:last').clone(true);
cln.find("[id^='filterLocation']").each(function(i, val) {
val.id = val.id.match(/^([^0-9]+)[0-9]*$/)[1] + "" + counter;
});
return false;
});
I clone the entire row, do some hide/show operations and increment the ids.