I'm wondering how how access returned values from a jQuery function. I know the basic way with a javascript function like so: "var myVar=myFunction();"
But can anyone please show me how I would do it with a jQuery function like this? If i was looking to access the mousePosX and mousePosY? I just don't see a function name to reference. Thanks in advance as always!
$("#demoCanvas").mousemove(function(event){
mousePosX = event.pageX;
mousePosY = event.pageY;
return mousePosX;
return mousePosY;
});//end mousemove()