title: Call a function without the element thats bound to
body: <p>I have a function bound to a button that looks like this:</p>
  
  <pre><code>$(".deletebutton").click(function(sender){...somecode...}
  </code></pre>
  
  <p>In another function (Let's call it function_2) i want do do the same thing that happenes in the click-funktion. Now i dont want to use </p>
  
  <blockquote>
    <p><code>$( ".button" ).trigger( "click" );</code></p>
  </blockquote>
  
  <p>because within the click-function i have to distinguish, if the function is called by pressing the button or by calling it in function_2.</p>
  
  <p>Can anyone help me there?</p>
  
  <p>Note: Sorry if the title may be misleading, i didnt know how to say it better in english!</p>