10 var node
= document
.getElementById(id
);
11 node
.style
.display
== 'none' ? node
.style
.display
= 'block' : node
.style
.display
= 'none';
15 <div style=
"border:2px solid red"><a onclick=
"toggle('first');">First
</a><span id=
"first" style=
"display:none">
17 </span><a onclick=
"toggle('second');">Second
</a><span id=
"second" style=
"display:none">
19 </span><a onclick=
"toggle('third');">Third
</a><span id=
"third" style=
"display:none">
20 Third Content.
<a onclick=
"toggle('crashme');"> Crash Me
</a><span id=
"crashme" style=
"display:none">