title: Pass in 2 parameters for a jquery function
body: <p>I have this function that works, but I would like to make this one as a general function so I can pass in 2 variables.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
         $(function() {
             $(SOME_ID_HERE).click(function() {
                 if (confirm(SOME_ERRORMESSAGE_HERE)) {
                     $.post(this.href, function(data) {
                         document.location.reload();
                     });
                     return false;
                 }
             });
  
         }); 
  &lt;/script&gt;
  </code></pre>
  
  <p>How shall I modify this one so I can pass in SOME_ID_HERE and SOME_ERRORMESSAGE_HERE? and how do I call that function?</p>
  
  <p>/M</p>