By name: $('h1')
By ID: $('#header')
By class: $('.important-header')
What are the different ways to chain selectors? For instance, how would you select an element that has a class of “bordered-content” AND “ad-aside”?
With a comma seperated list of selectors:
$('.bordered-content, .ad-aside')
How can you select many elements with different classes and IDs in a single selector statement? For instance, how can you select an element with the ID of “main” and a different element with an ID of “secondary”?
Using the same comma separated list of selectors:
$('#main, #secondary')
$('input[name='first_name']')
To select all checked input elements:
$(":selected")
Selectors return a jQuery object known as the "wrapped set", which is an array-like structure that contains all the selected DOM elements.
https://codepen.io/samuelcoleman/pen/OJLprZj
What happens when you search for something on the jQuery docs page? Is it confusing? How are the results ordered?
It narrows down the results making it easier to find a method or property that you are looking for. It is not confusing becuase the results are ordered by most relevant to what you are searching.
Searching google for questions when you’re using jQuery can be tricky because it will turn up vanilla JavaScript results too. What are some strategies for using google to find answers regarding jQuery?
Too specify that you are looking for jQuery syntax when googling by including 'jQuery' somewhere in your search.