I have a div with id (titlediv_1265601). How can I add/remove a * to the first td of the table before “Adjuster Name:” based on the following condition using jquery?
if(a == 'addSpan')
{}
else if(a == 'RemoveSpan')
{}
<div id="titlediv_1265601" style="width: 100%; position: relative; visibility: visible; display: block;">
<table>
<tbody>
<tr>
<td id="AdjusterOrAdjusterAssistantCell" class="MyTableHeadingCell">Adjuster Name:</td>
<td class="MyTableTagsCell"><input type="text" id="AdjusterOrAdjusterAssistant"></td>
<td class="MyTableHeadingCell"></td>
<td class="MyTableTagsCell"></td>
</tr>
</tbody>
</table>
</div>
will probably work correctly.