Hey all,
I have a very simple collapsible panel which is working fine right now, but I am trying to make the expanded item's text bold "Without doing a post back or use of links". Here is the code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Collapsible Panel Test</title>
</head>
<script language="jscript">
sel = ''
function show_section(section_id)
{
if (sel != '')
{
ds = document.getElementById(sel)
ds.style.display = "none"
}
sel = 'PanelDetails_' + section_id
dt = document.getElementById(sel)
dt.style.display = ""
}
</script>
</head>
<body class="body">
<b><span id="ctlPageTitle">Collapsible Panel Test</span></b><br />
<br />
<span id="ctlItemSelection">
<ul class="submenu2">
<li class="selected">
<span onclick="show_section(1)" onmouseover="style.cursor='hand'">Item 1</span> </li>
<div id="PanelDetails_1" style="display:none">
<blockquote>
Detail Description for item 1.
</blockquote>
</div>
<li>
<span onclick="show_section(2)" onmouseover="style.cursor='hand'">Item 2</span>
</li>
<div id="PanelDetails_2" style="display:none">
<blockquote>
Detail description for item 2.
</blockquote>
</div>
</ul>
</body>
</html>
Any help would be much appreciated.
Thanks,
Pete