F
Fix
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.getElementById(id).style.display='none';
}
activated by:
<div onclick="hidediv('one');hidediv('two');hidediv('three')">click</div>
How can I adjust this script to activate it by:
<div onclick="hidediv('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.getElementById(id).style.display='none';
}
activated by:
<div onclick="hidediv('one');hidediv('two');hidediv('three')">click</div>
How can I adjust this script to activate it by:
<div onclick="hidediv('one','two','three')">click</div>
Thanks!