I've got a string within a variable:
var dot = '<div class="dot"></div>'
And I am trying to append it to some HTML, multiple times:
var number = 3; // this has come from an $('img').length; could be any number
$(dot * number).appendTo('.m-slide-ctrl');
The above obviously does not work, but I'm not sure how to approach something so simple. The number of times I would like the string to be written, would be dependent on the number of images (so using .length)
Any help would be great.