How can I post values from a multiple select in a form? When I hit submit none of the selected values are posted.
try this : here select is your select element
let select = document.getElementsByClassName('lstSelected')[0], options = select.options, len = options.length, data='', i=0; while (i
Data is in the form of query string i.e.name=value&name=anotherValue