I'm trying to submit a whole multiple select (which is $('#tags_selected')) via Ajax
$.ajax({
url: base_url + 'companies/editTagsAsync',
type: 'post',
dataType: 'json',
data: $('#tags_selected').val(),
success: function (json) {
console.log(json);
}
});
But it only sends the values that are selected. I want to pass ALL the values in the selectbox. There's probably an easy solution to this, but I just don't know it...