I have a form containing a multiple select box, as follows:
Please assume that I already have knowledge of how basic AJAX is structured. I only need to know how the above particular example will differ from basic ones. (For example, if I have an empty name field, and I fill in the name and press submit, my code already successfully adds that name to the database and shows the new name on the page without a refresh.)
I am not able to replicate this with multiple options at once however. Specifically, how can I get every option that is selected, to be transferred to the "my_javascript" function? Furthermore, after I send those options from the javascript to the PHP (I assume this step will be identical to "basic" AJAX implementations?), then how do I add each option to the database in my PHP file?
Thanks!