Question
Are there other ways I can target elements besides by class
and by id
?
Answer
jQuery supports most CSS selectors to target elements, including the following selectors:
- class
- id
- attribute
- child
- descendant
- group
- chained
- universal
…along with many others - please check the jQuery documentation for a more detailed list of selectors we can use!