Basics Flashcards

1
Q

What is jQuery?

A
  • It is a JavaScript library
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to select DOM elements with jQuery?

A
- $('tag')
\+ Example:
   $('div')
- $('.class')
- $('#id')
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Methods to explore the DOM tree?

A
  • .parent()
  • .parents()
  • .children()
  • .siblings()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly