-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTuesdayWeek3
More file actions
43 lines (24 loc) · 732 Bytes
/
TuesdayWeek3
File metadata and controls
43 lines (24 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
1. What is the most common short version of $(document).ready()?
- $()
2. What is “progressive enhancement”?
- Improved way of handling events.
3. How do you bind a click event to a button?
- $(document).ready(function() {
$('#button id').bind('click', function() {
$('body').addClass('large');
});
});
4. Inside a click handler, what is the variable this set to?
-
5. What is event bubbling?
-
6. How do we stop an event from bubbling up the chain?
-
7. How do we stop an element from taking its default action (e.g. a submit button will refresh the page or submit a form)
-
8. How do we remove a binding?
-
9. How do we hide and show elements?
-
10. How do we blur or slide elements?
-