I'm a bit boggled by this... Why is .val() returning null when there clearly is an option selected for the <select>
?
These commands were executed via Chrome's console on the page with the issue.
I'm a bit boggled by this... Why is .val() returning null when there clearly is an option selected for the <select>
?
These commands were executed via Chrome's console on the page with the issue.
I think this may be a bug in Chrome. Maybe a bug between my specific version of Chrome and this specific version of jQuery? The select
in question (which was previously hidden, but unhidden for further testing) appears like so:
This suggests that an option is not selected.
However, clicking on it (to open the select element and display the options, not actually clicking on an option) reveals this:
Weird. Very weird. Soooo if the GUI is reflecting the state of things, part of Chrome thinks that the select element has an option selected, while another part of the code thinks the select element does not have an option selected? Weird.