title: jQuery: how to include attributes on click during .ready()?
body: <p>I'm trying to convert all my old javascripts to jquery but I'm a bit confused how can I convert my click event with attr. The old javascript looks something like:</p>
  
  <pre><code>function MyFunction(string1, string2){
      doSomething(string1);
      doSomethingElse(string2);
  }
  </code></pre>
  
  <p>And then I call it with</p>
  
  <pre><code>&lt;a href="javascript:MyFunction('string 1','string 2');"&gt;CLICK HERE&lt;/a&gt;
  </code></pre>
  
  <p><strong>Can I do this with the jquery click()? Or how can I send the two strings with an event in jquery?</strong>
  I need to define the two strings in the link like I'm doing it now because the strings will vary.</p>
  
  <p>Edit: I have removed my jquery-code-try as it only confused :) </p>