Pure JavaScript. Chrome.
html
<select name="your-course" class="wpcf7-form-control wpcf7-select wpcf7-validates-as-required" id="course-selection" aria-required="true" aria-invalid="false">
<option value="">---</option>
<option value="makeup">Make up</option>
<option value="hairdress">Hairdress</option>
<option value="tatoo">Tatoo</option>
</select>
<input type="submit" value="Submit" class="wpcf7-form-control wpcf7-submit" id="contact-submit" /></p>
Then in the browser I select something. Say, hairdress. And go to the console. It is in Chrome. But this must work in all browsers.
var sel = document.getElementById("course-selection")
Now I can check that sel is found. Then.
sel.selectedIndex
The result is 0. It is always 0. No matter what I choose. This problem seems to be commonly discussed in the internet. Well, I've also blown up here.
Could you give me a kick?