My CSS:
#a_x200{
visibility: hidden;
width: 200px;
height: 200px;
background-color: black;
}
My JS:
try this...
function showStuff(id) {
document.getElementById(id).style.display = 'block'; // OR
document.getElementById(id).style.visibility = 'visible';
}
edit
If you notice on your button click onclick="showStuff('a_x200');"
. you have already sent the id as a parameter to your function.. so i am taking the parameter and using it.
in your case have the parameter but not using it... though it does the samething...
OR u can do this
// omitting double 'n'
function showStuff() {
document.getElementById('a_x200').style.display = 'block';
} // missing curly bracket
this both does the same thing