i am having below code:
$(function() {
$("#buttonID").click( function() {
// stop funcName() running
});
});
$(function funcName(){
// some scripts will run on page load
});
My question is how can i stop funcName() running when click at #buttonID.
Thank you guys.
EDIT: This is the script that will run on page load: https://jsfiddle.net/1t8z3Ls2/1/ (i found this script on Google. this script will make a div child become sticky to it's parent div.)
I want to make this script stop runnig by clicking on a button.
Thanks again.