I am currently adding a Form with a Link to a table.
The code works as expected however the link position is at the top of the cell.
This is causing the other cells height to change as a result.
Code as Follows:
[PHP]
echo '<td"><form id=\'form\' method="POST" action="test.php">
<input type=\'hidden\' name=\'test\' value=\'test\' />
<input type=\'hidden\' name=\'test2\' value=\'test2\' />
<a id="myLink" title="Click to do something" href="#"
onclick="submitLink(\'form\');return false;">click here</a>
</form></td>';
... [JavaScript]
<script>
function submitSessionForm(sessionID){
//Submit Form
document.getElementById(sessionID).submit();
}
</script>
Why is the cell height changed? The Form height doesn't seem to be causing the issue (As when inspecting the element the TD is causing the row height to change.
Any advice would be appreciated.