<script type="text/javascript">
function ShowHide(id) {
var elementStyle=document.getElementById(id).style
elementStyle.display = elementStyle.display == "inline" ? "none" : "inline";
}
function ShowHide(id) {
var elementStyle=document.getElementById(id).style
elementStyle.display = elementStyle.display == "inline" ? "none" : "inline";
}
Example:
<h2>
<span onclick="ShowHide('SessionVarHider');">Session</span><span style="display:none" id="SessionVarHider"> -
</h2>
<ul id="sessionVars">
<!--<li><a href="#">Aliquam libero</a></li>-->
<%= SessionVariableList() %>
</ul>
</span>
<span onclick="ShowHide('SessionVarHider');">Session</span><span style="display:none" id="SessionVarHider"> -
</h2>
<ul id="sessionVars">
<!--<li><a href="#">Aliquam libero</a></li>-->
<%= SessionVariableList() %>
</ul>
</span>
No comments:
Post a Comment