"alternative to .selector property now that it is removed in jquery 1.9" Code Answer

1

there should not be many reasons to actually need the original selector. in your specific use case, if you want to narrow down the set of selected elements, you can use .filter [docs]:

$test.filter(':checked').attr('id')

$('#whatever').selector still seems to work though. the documentation says "in 1.9, jquery no longer attempts to maintain this property in chained methods [...]". though http://api.jquery.com/selector claims it was removed in 1.9. i don't know, it's a bit confusing.

By hakre on February 5 2022

Answers related to “alternative to .selector property now that it is removed in jquery 1.9”

Only authorized users can answer the Search term. Please sign in first, or register a free account.