logo

Crowdly

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.gla.ac.uk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!