jQuery Flashcards

1
Q

What does $( ‘someElement’ ) do?

A

Is a function that turns ‘someElement’ into a jQuery object.

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

what does fadeTo( ) do and what are it’s arguments?

A

fadeTo creates an animation effect of fading in. It’s arguments are: the speed in which to fade to and the opacity in which to fade to in that order. i.e. $(‘div’).fadeTo(‘slow’, ‘0.8’);

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

What are the parts of a jQuery function?

A
  1. The ‘function’ keyword.
  2. The inputs that go into the function ‘(input1, input2 )’.
  3. The action/actions the function wil perform ‘{ action }’.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an event handler?

A

It is the action that causes a function to occur.

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