Skip to main content

Posts

Showing posts with the label jQuery Test Upwork Answers

jQuery Test Upwork Answers 2019

1. Consider the following code snippet: $('a.arrow-1').click(function () { $('.second-row').slideUp(); $(this).parent('.first-row').siblings('.second-row').slideDown(); }); The order of the animations of this code snippet are: Answers:   • The targeted parent sibling .second-row will slide up, then .second-row will slide down. • .second-row will slide up, then the targeted parent sibling .second-row will slide down. • Both the targeted parent sibling .second-row will slide down and the .second-row will slide up actions will occur at the same time. • None of the above. 2. Consider the following code snippet: $('#ul1 li').live('click', function1); $('#ul1').after('<li id="lastLi">Last item</li>'); Is function1 executed if "lastLi" is clicked? Answers:   • Yes • No • "lastLi" does not exist. 3. Which of the following code ...