If crousel has form input elements like textbox and submit button then with infinite true option getting console errro "[DOM] found X elements with non-unique id #"
Solution
Insted if no Id, we can set some randome id.
.attr('id', '') can be replaced with
.attr('id', Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5))
If crousel has form input elements like textbox and submit button then with infinite true option getting console errro "[DOM] found X elements with non-unique id #"