mousemove not triggered. JQuery 2.2.1

mousemove not triggered. JQuery 2.2.1

Hi,

Is there something I do wrong for not having my event trigerred ?

I have the following script at the top of my cshtml and there's effectively a div with class name starting with "ResidentItem" In debug I see that it gets in the ready function and apply the mousemove but it never gets inside the function when moving the mouse on the item with class starting with ResidentItem

  1. <script type="text/javascript">
        $(document).ready(function () {
            $('div[class^="ResidentItem"]').mousemove(function () {
                var tooltipSpan = document.getElementById('tooltiptext');
                var x = e.clientX;
                var y = e.clientY;
                tooltipSpan.style.top = (y + 20) + 'px';
                tooltipSpan.style.left = (x + 20) + 'px';
            });
        });
    </script>