Saturday, 31 August 2013

jQuery hide box issue

jQuery hide box issue

I'm using jQuery to hide moving div when click on i'm using this code :
$("#image").click(function () {
$("#image").hide();
});
$(document).mousemove(function(e){
$("#image").css({left:e.pageX, top:e.pageY});
});
well the box move but even when i click on it it doesn't disapear!

No comments:

Post a Comment