Open Elodrin opened 6 years ago
I came across the same problem. Did you find a way?
Hi!
This is probably just a regular jQuery issue... you have to re-initialise the binding to dynamically (on the fly) created elements.
In practice, you have to do the binding again after the .clone()...
// clone
$('.flexdatalist:first').clone().appendTo('#wrapper');
// re-initialise
$('.flexdatalist:last').flexdatalist({ options... });
Hi, many thanks for this wunderful plugin. It looks really attractive and I like the customizable funktions. Unfortunately I cannot find a trigger function or something like that to add the flexdatalist to an input field which I would like to creat on the fly by jQuery. e.g.
It's also not working when I create the HTML code manually by not using clone(). e.g.
$('#wrapper').html('<input type="text" class="flexdatalist" name="products[]" ...>')
Do you have any idea how to handle this problem? Many thanks for your help in advance!
Best regards André