I'd like to show/hide multiple ID of elements.
I have a problem with the javascript in my HTML file.
Here's the javascript:
<Script type="text/javascript" language="JavaScript"><!--
function HideContent(d){
document.getElementById(d).style.display = "none";
}
function ShowContent(d){
document.getElementById(d).style.display = "block";
}
//--></script>
And my HTML:
<div class = "left" id="colsxmenu">
<ul>
<li><a href="javascript:HideContent('colsxmenu')"> ENGLISH</a>
<li><a href="javascript:HideContent('uniquename')">FRENCH</a>
Actually, if I select ENGLISH it works good hiding the colsxmenu
, but what I need is if I select FRENCH it should hide more than only 1 elements.
I tried to add ('colsxmenu';'colsxmenu2')
, but that didn't works.