Hi I'm new to Javascript and need some help to get my head around this....
I have this function....
I have this in a form on a page
Basically I want the LSAStartD text box to appear if the user checks the checkbox and not hide it if its unchecked.
Any help appreciated
I have this function....
Code:
<script type="text/javascript">
function ShowHide()
{
If document.getElementByName("LSAcheck").checked=true
{
document.getElementByName("LSAStartD").type="text"
}
Else
{
document.getElementByName("LSAStartD").type="hidden"
}
}
</script>
I have this in a form on a page
Code:
<tr>
<td align="right">LSA required:</td>
<td align="left"><input type="checkbox" name="LSAcheck" onchange="ShowHide()"></input>
<input type="hidden" name="LSAStartD" size="10"></input></td>
</tr>
Basically I want the LSAStartD text box to appear if the user checks the checkbox and not hide it if its unchecked.
Any help appreciated