Pass value to function from <a> tag, not from button
<p>Consider the following link and associated Javascript function:</p>

<pre><code>&lt;a class="someClass" href="#" onClick="someFunc('someVal'); return false;"&gt;Run someFunc&lt;/a&gt;

function someFunc(val) {
    doSomething(val);
}
</code></pre>

<p>I would prefer to refactor the link and Javascript function to support some additional functionality (the link is actually in a <code>div</code> returned by AJAX):</p>

<pre><code>&lt;a class="someClass" href="#" someAttribute="someVal"&gt;Run someFunc&lt;/a&gt;

$(".someClass").click(function(e) {
    e.preventDefault();
    // How to get value of someAttribute?
    doSomething(val);
});
</code></pre>

<p>How can I get the value of <code>someAttribute</code>? Thanks.</p>
