title: Jquery calling a callback function in a custom function
body: <p>I have a custom function and I want to add a callback function to it, i looked through the other questions but I couldn't really find the answer for my problem. So basically it looks like this:</p>
  
  <pre><code>function myfunction() {
   // something 
  }
  </code></pre>
  
  <p>And I have a different function which I want to trigger as a callback, eventually i want to call myfunction like this:  </p>
  
  <pre><code>myfunction(callback());
  </code></pre>
  
  <p>So can anyone please tell my the way to do this?</p>