9 lines
No EOL
222 B
JavaScript
9 lines
No EOL
222 B
JavaScript
function toggle_solution(id)
|
|
{
|
|
element = document.getElementById("explanation_" + id);
|
|
if (element.className == "show") {
|
|
element.className = "hide";
|
|
} else {
|
|
element.className = "show";
|
|
}
|
|
} |