Skip to content

Correctly count number of selected options#18

Open
mweimerskirch wants to merge 1 commit into
ripter:masterfrom
mweimerskirch:patch-2
Open

Correctly count number of selected options#18
mweimerskirch wants to merge 1 commit into
ripter:masterfrom
mweimerskirch:patch-2

Conversation

@mweimerskirch
Copy link
Copy Markdown

":selected" always returns at least one element, because the browser automatically selects the first element.
Using "[selected]", only those elements that really have the "selected" attribute are returned.

":selected" always returns at least one element, because the browser automatically selects the first element.
Using "[selected]", only those elements that really have the "selected" attribute are returned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant