Forum Moderators: open
<SCRIPT LANGUAGE="JavaScript">
function RadioButtonCheck() {
if (document.form.Choice.value == "Action") {
document.FormAction.class.value == ""
}
if (document.form.Choice.value == "View") {
document.FormView.class.value == ""
}
}
//
</script>
<form method="post" action="sysMenuDropdown.asp?a=a" target="_self" style="PADDING-TOP:5px" name="form" onSubmit="return RadioButtonCheck();">
<input type="radio" name="Choice" value="Action" onclick=""><label>Action</label></input>
<br></br>
<input type="radio" value="View" name="Choice" onclick=""><label>View</label></input>
</form>
<!-- Action -->
<form class="Invisible" method="post" action="sysMenuDropdown.asp" target="_self" style="PADDING-TOP:5px" name="FormAction">
<input name="postA" type="hidden" value="g"></input>
<label>Action: </label>
<select name="FKParentSecuredItemInstID" tabindex="1">
<option value="0"></option>
<xsl:call-template name="DropDownList">
<xsl:with-param name="ddlName">ActionDropdownMenusSecItems</xsl:with-param>
<xsl:with-param name="ddlSelected"><xsl:value-of select="//PAGE_SETTINGS/@selectedDropdown" /></xsl:with-param>
</xsl:call-template>
</select> 
<button name="btnGetAction" type="submit" accesskey="G"><u>G</u>et</button>
</form>
<!-- -->
<!-- View -->
<form class="Invisible" method="post" action="sysMenuDropdown.asp" target="_self" style="PADDING-TOP:5px" name="FormAction">
<input name="postA" type="hidden" value="g"></input>
<label>  View: </label>
<select name="FKParentSecuredItemInstID" tabindex="1">
<option value="0"></option>
<xsl:call-template name="DropDownList">
<xsl:with-param name="ddlName">ViewDropdownMenusSecItems</xsl:with-param>
<xsl:with-param name="ddlSelected"><xsl:value-of select="//PAGE_SETTINGS/@selectedDropdown" /></xsl:with-param>
</xsl:call-template>
</select> 
<button name="btnGetView" type="submit" accesskey="G"><u>G</u>et</button>
</form>
<!-- -->
document.getElementById("formIdHere").className = "classNameHere"; I'm not sure whether className = '' is a valid idea. You may need to add a default class to your CSS, with 'display: block'.
Btw, welcome to WebmasterWorld, scoobydoo. Could you please keep your posts as short as possible, i.e. without the irrelevant bits? Thx.
You could then use these radio buttons and javascript:
<SCRIPT LANGUAGE="JavaScript">
function RadioButtonCheck(formID) {
document.getElementByID(formID).style.display = "block";
}
</script>
<form style="PADDING-TOP:5px">
<input type="radio" name="Choice" onclick="RadioButtonCheck("ActionForm")"><label>Action</label></input>
<br></br>
<input type="radio" name="Choice" onclick="RadioButtonCheck("ViewForm")"><label>View</label></input>
</form>
This would be a cross-browser solution.