Forum Moderators: open
im able to make the div display:block by clicking a link. onclick calls a function and passes 'block' to it
however im at a loss as to how i can pass 'block' to this function as a result of a non match coming from the regular expression ...?
im using
function changeViz(newViz) {
if (document.getElementById) {
var div = document.getElementById('the_div');
div.style.display = newViz;
}
else {
alert("Sorry, you need a newer browser.");
}
}