HTML Multiple Select Value As Comma Separated String In GET Variable
I have set up a multi-select list as follows:
Eventually my answer was as simple as:
$('#form-specials').on('submit', function(e) {
e.preventDefault();
var cuisines = $('#cuisine-select').val().join(',');
var day = $('#day-select').val();
window.location = 'restaurant?_sft_category=' + day + "&_sft_post_tag=" + cuisines;
});
Post a Comment for "HTML Multiple Select Value As Comma Separated String In GET Variable"