Answer: mousemove() method is used in jquery to write mouse move elelment in the html.
Example
<script type="text/javascript">
$("#spanMouseDownUp").mousemove(function () {
$(this).html("You have started moving");
});
</script>
<div id="spanMouseDownUp" style="background:green;color:White;padding:10px;">Try to bring your mouse here</div>
In the code when user move mouse over “spanMouseDownUp” element then “You have started moving” text will be written inside it.
Asked In: spotted while learning |
Alert Moderator