jquery - mouse co ordinates using event.pageX returns undefined -



jquery - mouse co ordinates using event.pageX returns undefined -

in jquery tried

$(".bydd").live("change", function (event) { // other actions happening console.log(event.pagex); });

when checked console undefined. tried window.x

the code not work on alter event ... have created simple demo of same class="snippet-code-js lang-js prettyprint-override">$( document ).on( "mousemove", function( event ) { $( "#log" ).text( "pagex: " + event.pagex + ", pagey: " + event.pagey ); }); class="snippet-code-html lang-html prettyprint-override"><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <div id="log"></div>

jquery

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -