Basics Flashcards
1
Q
What is jQuery?
A
- It is a JavaScript library
2
Q
What is the $ symbol?
A
- It is a pointer to the javascript object that represents jQuery. It’s the same to write $ or jQuery and it is easier than to write the whole word.
3
Q
How is jQuery included in a page?
A
- You have to paste the following code in the
- Is better to use this because is faster
4
Q
How to select DOM elements with jQuery?
A
- $('tag') \+ Example: $('div') - $('.class') - $('#id')
5
Q
Methods to explore the DOM tree?
A
- .parent()
- .parents()
- .children()
- .siblings()