In jQuery, this is a selector of older syntax and what does it do?

I see in code

$(".add-to-list :select :selected")

using jQuery, and we had jQuery 1.3.2, but updated to 1.4.2 recently. The line above actually speaks of a syntax error ... was it for jQuery 1.3.2 but not 1.4.2, and what does it do - any documents - and how do you do it in 1.4.2? thank.

+3
source share
1 answer

This selector searches for all optionelements that are selectedinside all selectelements in all elements that have a class add-to-list.

, , , :select . 1.3.2, . select HTML select.

:

".add-to-list select :selected"
+7

Source: https://habr.com/ru/post/1776608/


All Articles