PrepAway - Latest Free Exam Questions & Answers

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

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

PrepAway - Latest Free Exam Questions & Answers

A.
$(“#div1”).mouseenter(displayname);

B.
$(“.div1”).mouseenter(displayname);

C.
$(“#div1”).mousemove(displayname);

D.
$(“.div1”).mousemove(displayname);

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


Leave a Reply