<!DOCTYPE html>
<html lang="en-US">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head>
<body>
<h1>jQuery mousemove() Method</h1>
<p>Try to move the mouse over me.</p>
<p>x-axis - <span id="point">0</span></p>
<script>
$(document).ready(function(){
$("p").mousemove(function(e){
$("#point").text(e.clientX);
});
});
</script> </body>
</html>