JQuery add event to anchor and get url
<p>I am trying to get the childBrowser plugin to work on links by adding the code at runtime to links.</p>

<p>Normally, if I was adding to code manually to the links, this is how it would look:</p>

<pre><code>&lt;a href="#" window.plugins.childBrowser.showWebPage('http://www.google.com');&gt;click me&lt;/a&gt;
</code></pre>

<p>Now, because I need to do it at runtime I've got this together:</p>

<pre><code>$('a').on('click', function () {

    window.plugins.childBrowser.showWebPage('http://www.google.com');

});
</code></pre>

<p>But the problem is that all links might have a different url so I need to somehow use the code about but with the link that it comes with and not a hardcoded url as above.</p>

<p>Links would initially look like below.</p>

<pre><code>&lt;a href="http://www.somelink.com"&gt;click me&lt;/a&gt;
</code></pre>

<p>How could I do this?</p>
