Get value of item which is clicked in datalist by Javascript
<p>When design I have a Datalist with a label inside. when load it will has 10 label(datasource from list has 10 value type int ). I want get value of any label which i click.  I think i must resolve 2 problem:
1. Find control(label inside datalist) which is clicked.
2. Get value of it.</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
    {
        List&lt;int&gt; list = new List&lt;int&gt;();
        for (int i = 0; i &lt; 10; i++)
        {
            list.Add(i);

        }
        int a=1;

        DataList1.DataSource = list;
        DataList1.DataBind();
        foreach (DataListItem item in DataList1.Items)
        {
            ((Label)item.FindControl("Label1")).Text = a.ToString();
            if ((Convert.ToInt32(((Label)item.FindControl("Label1")).Text)) % 2 != 0)
            {
                ((Label)item.FindControl("Label1")).BackColor = System.Drawing.Color.Gray;
            }
            ((Label)item.FindControl("Label1")).Attributes.Add("onclick", "run();");
            a++;
        }
</code></pre>

<p>This is my run() function</p>

<pre><code>function run() {

            $("#Panel1").scrollTop(100*gt1);

        }
</code></pre>

<p>Here, i want gt1 get value of label clicked.</p>

<p>Thanks for helping(sr about my English)</p>
