Hi,
There probably is a very simple and basic solution for what i want, but i
just don't know how...
I have this script, which could be much shorter:
function hidediv(id) {
document.getEle mentById(id).st yle.display='no ne';
}
activated by:
<div onclick="hidedi v('one');hidedi v('two');hidedi v('three')">cli ck</div>
How can I adjust this script to activate it by:
<div onclick="hidedi v('one','two',' three')">click</div>
Thanks!
There probably is a very simple and basic solution for what i want, but i
just don't know how...
I have this script, which could be much shorter:
function hidediv(id) {
document.getEle mentById(id).st yle.display='no ne';
}
activated by:
<div onclick="hidedi v('one');hidedi v('two');hidedi v('three')">cli ck</div>
How can I adjust this script to activate it by:
<div onclick="hidedi v('one','two',' three')">click</div>
Thanks!
Comment