jQuery Flashcards
1
Q
What does $( ‘someElement’ ) do?
A
Is a function that turns ‘someElement’ into a jQuery object.
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’);
3
Q
What are the parts of a jQuery function?
A
- The ‘function’ keyword.
- The inputs that go into the function ‘(input1, input2 )’.
- The action/actions the function wil perform ‘{ action }’.
4
Q
What is an event handler?
A
It is the action that causes a function to occur.