Tuesday, 20 August 2013

How to kill mousemove after click in this jquery function?

How to kill mousemove after click in this jquery function?

This is a button that follows mouse movement. I would like to stop this
button when mouse is clicked on it!
jQuery( document ).ready( function() {
$( "#enbfb-button-wrapper-5" ).parent().mousemove( function( e ) {
jQuery( "#enbfb-button-wrapper-5" ).css( {
top: e.pageY - 10, left: e.pageX + 30
} );
} );
I think I have to kill mousemove! How to do that please?
thanks

No comments:

Post a Comment