I'm trying to format a content (text) of a td element using JavaScript. However, the element does not have an ID property (to use getElementbyID) and has a non-unique Class property (to use getElementbyClass).
I have no control over the html part, to change the Class name or include an ID property. All that is constant is the text within the <td>
.
Any idea how I can write a script that will format (say, make the text bold?)?
Note that I cannot use JQuery.
<table width="100%" class="ms-formtable" style="margin-top: 8px;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="90%" class="ms-formlabel" valign="top">
General
</td>
</tr>
</tbody>
</table>