I have a form and I need to create a multidimensional array based on a DOM element that a user can generate more than once with a click of a button.
var dimention = $(".stations").length;
This is how get the number of <div class="stations">...</div>" elements on the page and based on this number I need to create an array.
I currently defined var stations = [[],[],[],[],[]]; 5 manually but I need to do this dynamically, in case the user wants to create more than 5. Thanks.