How to send parameter?
<p>How can I send image path to the function? My code is:</p>

<pre><code>&lt;a href="#" onclick="addElement(this.id);" id="cricket" tabindex="1"&gt;Cricket&lt;/a&gt; 
</code></pre>

<p>I want to send my image path in the function <code>addElement</code> along with the <code>id</code>. </p>
