Skip to content

Commit

Permalink
Update jquery-quiz.md (#1830)
Browse files Browse the repository at this point in the history
Added answers for Q54 & Q57
  • Loading branch information
anandnat authored Jul 13, 2021
1 parent 722a395 commit aadfe0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery/jquery-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ $('.item').parents('.navigation').css('font-weight', 'bold');

- [ ] `$('#load-me').get('source.html#one');`
- [ ] `$('#load-me').get('source.html #one');`
- [ ] `$('#load-me').load('source.html #one');`
- [x] `$('#load-me').load('source.html #one');`
- [ ] `$('#load-me').load('source.html', '#one');`

#### Q55. Given this HTML list and subsequent two lines of jQuery, what is the difference in the behavior of `.closest()` and `.parents()`?
Expand Down Expand Up @@ -1046,7 +1046,7 @@ function listResponder(evt) {
```

- [ ] `$('.clickable-list).click(listResponder);`
- [ ] `$('.clickable-list).on('click', 'li', listResponder);`
- [x] `$('.clickable-list).on('click', 'li', listResponder);`
- [ ] `$('.clickable-list).on('click, append', listResponder);`
- [ ] `$('.clickable-list).each(function() { $(this).click(listResponder); });`

Expand Down

0 comments on commit aadfe0c

Please sign in to comment.