Javascript Ajax jQuery Html PHP Example Quiz New MORE
Need a Website Or Web Application.Contact : +91 9437911966 (Whatsapp) Note: Paid Service

jquery mousemove() Method

The mousemove() method is an predefined method in jQuery. It is used when mouse pointer moves over the selected element. It is accept one parameter and it is optional.




<!DOCTYPE html>
        <title>The mousemove Method</title>
        <script src=
        <!-- jQuery code to show the working of this method -->
            $(document).ready(function() {
                $("p").mousemove(function() {
                    $("div").css("background-color", "lightgreen");
                $("p").mouseleave(function() {
                    $("div").css("background-color", "white");
            div {
                width: 300px;
                padding: 15px;
                height: 50px;
                border: 1px solid orange;
                font-weight: bold;
                font-size: 20px;
            <!-- move over this text to see the change -->
            <p>Move over this paragraph.</p>
Run it Yourself »