You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of select elements, it returns null when no option is selected and an array containing the value of each selected option when there is at least one and it is possible to select more because the multiple attribute is present.
which could say something like this instead...
When called on select elements that have no option selected, the .val() method returns null, or an empty array if the multiple attribute is present. If at least one option is selected, either the value or an array of values will be returned.