Skip to content
Advertisement

How to get form data with multiple select, similar to jquery val?

I work on solution to append form data (input, select, textarea) to FormData. I have problem with multiple select. Select value should be like jquery .val() – array if more than one option is selected.

JavaScript

I would be grateful for help.

Advertisement

Answer

This works:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement