Fetch the span id of a label dynamically and make the label bold.
Here is a demo piece of code being dealt with:
<tr>
<td style="height: 8px;"></td>
<td nowrap="" valign="middle" rowspan="2" colspan="2">
<div align="Right" class="xyz">
<span id="1_2_3_A">First Name</span>:
</div>
</td>
<td nowrap="" valign="middle" rowspan="2" colspan="6">
<div class="abc">
<input name="1_2_3" tabindex="0" class="give-input-align-left"
aria-readonly="false" aria-labelledby="FirstName_Label" style="width: 160px; height: 24px;"
aria-label="First Name" type="text" maxlength="50" value="" data-seq="0">
</div>
</td>
</tr>
Problem Statement:
Need to pick the span id value dynamically ,i.e, the value should be picked irrespective of the change in it. Using this value want to make the "First Name" label bold.