title: How to get the label value from table row when row number is known, using Javascript
body: <p>I have a table like this-</p>
  
  <pre><code>&lt;table&gt;
   &lt;tr&gt;
     &lt;td&gt;
        &lt;label id="lbl1" value="1"&gt;Label1&lt;/label&gt;
     &lt;td&gt; 
     &lt;td&gt;
       Some data
     &lt;/td&gt;
     &lt;td&gt;
       Some data
     &lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
     &lt;td&gt;
        &lt;label id="lbl2" value="1"&gt;Label1&lt;/label&gt;
     &lt;td&gt; 
     &lt;td&gt;
       Some data
     &lt;/td&gt;
     &lt;td&gt;
       Some data
     &lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
     &lt;td&gt;
        &lt;label id="lbl3" value="1"&gt;Label1&lt;/label&gt;
     &lt;td&gt; 
     &lt;td&gt;
       Some data
     &lt;/td&gt;
     &lt;td&gt;
       Some data
     &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>My problem is that I want to alert the value of label present in the second row's first column. Assume that I don't know label id means I know its pattern like lbl1,lbl2 or lbl3.. but not exactly what it is in the second row.</p>