14 lines
350 B
JavaScript
14 lines
350 B
JavaScript
|
function toggle2(showHideDiv, switchTextDiv) {
|
||
|
var ele = document.getElementById(showHideDiv);
|
||
|
var text = document.getElementById(switchTextDiv);
|
||
|
if(ele.style.display == "block") {
|
||
|
ele.style.display = "none";
|
||
|
text.innerHTML = "Show Notes";
|
||
|
}
|
||
|
else {
|
||
|
ele.style.display = "block";
|
||
|
text.innerHTML = "Hide Notes";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|