logo

Crowdly

Consider the following jQuery code applied to an HTML page: ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Consider the following jQuery code applied to an HTML page:

$(document).ready( function() {

$("p").on({

mouseenter: function() {

$(this).css("background-color", "red"); },

mouseleave: function() {

$(this).css("background-color", "lightgreen"); },

click: function() {

$(this).css("background-color", "yellow"); }

});

});

If the user clicks on a paragraph element and then doesn't move the mouse further, what will be the paragraph's background colour?

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on moodle.gla.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!