PrepAway - Latest Free Exam Questions & Answers

you need to execute a javascript function when if first moves the mouse over the element <div id=”divhead

mouseenter jQuery In a page there is a div (I guess it was a div) and you need to execute a javascript
function when if first moves the mouse over the element
<div id=”divheader”></div>

PrepAway - Latest Free Exam Questions & Answers

A.
$(“#divheader”).mouseenter(somefunction);

B.
$(“#divheader”).mouseenter(somefunction);

C.
$(“.divheader”).mouseenter(somefunction);

D.
$(“.divheader”).mouseenter(somefunction);

Explanation:
$(‘#outer’).mouseenter(function() {$(‘#log’).append(‘<div>Handler for .mouseenter()
called.</div>’);} );
http://api.jquery.com/mouseenter/


Leave a Reply