I don’t know if it’s possible but below I have a simple html table:
<table id="plus" align="center">
<tr>
<th>
</th>
</tr>
</table>
If the if statement matches, then is it possible to append the image inside the <th> tag above? And if the statement doesn’t match then can I instead append the image link inside the <th> tag?
Below is the if statement, which is actually jQuery that includes a bit of php to try and find the ‘textQuestion’:
if (qnum == <?php echo (int)$_SESSION['textQuestion']; ?>) {
<img src="Images/plussigndisabled.jpg" width="30" height="30" alt="Look Up Previous Question" class="plusimage" name="plusbuttonrow"/>
} else {
<a onclick="return plusbutton();">
<img src="Images/plussign.jpg" width="30" height="30" alt="Look Up Previous Question" class="plusimage" name="plusbuttonrow"/>
</a>
}
Since you stated that you are using jQuery you can do this