What's the jQuery way of writing this JavaScript?
<p>I don't like the syntax <code>onclick='javascript:doSomething(...</code>.</p>

<p>How could I write this in jQuery?</p>

<pre><code>&lt;a onclick='javascript:doSomething(\"" + 
aName + 
"\",\"" + 
bName + 
"\",\"" + 
aLink + 
"\",\"" + 
aText + 
"\",\"" + 
aUrl + 
"\"); 
return false;' 
href='#'&gt;
    &lt;img title='Do something' id='doSomethingIcon' src='/images/doSomething.png'&gt;
&lt;/a&gt;
</code></pre>
