is there any way to assign a variable to unique to every element in html
<p>i have variable "count" in javascript. <code>function click(e){ var count=0; }</code> i need to assign this count variable uniquely to every label.<code>&lt;label id="1" onclick="click(this)&gt;a&lt;/label&gt; &lt;label id="2" onclick=click(this)&gt;b&lt;/label&gt;</code></p>

<p>when i click the label it would call function click(). there the count variable should not be global. the count variable for label id=1 call should different value to that of label id=2 call.</p>

<p>ie label1.count=1
label2.count=2;</p>

<p>is there any way to do like this?????</p>
