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