DubFriend / jquery.repeater

Create a repeatable group of input elements
MIT License
389 stars 191 forks source link

Usage with such plug-ins as selectize or select2 #89

Open whileweb opened 6 years ago

whileweb commented 6 years ago

How can I correctly use repeater with this plugins? Repeater clones DOM elements which create plug-in and it does not work :( Reinit it from show/hide functions does not helps

felipesp88 commented 6 years ago

I use with select2 in this way: $('.repeater').repeater({ show: function () { $(this).find('span').remove() $(this).find('select').select2({}) $(this).slideDown() }, hide: function (remove) { $(this).slideUp(remove); } })