I create a 2D array in Javascript and append it to my form using
var roles = $(".selectpicker.role"); $.each(roles, function(index, item