stin
September 28th, 2006, 11:49 AM
I have a question about why this won't work, especially since I ripped this off a page I made before and it worked.
I have this script:
function showElement()
{
document.getElementById("previousEmployment2").style.visibility = "visible";
document.getElementById("previousEmployment2").sytle.display = "block";
}
I had an alert in there and that went off, so I know its at least getting there.
I have a div that's id is "previousEmployment2" and in my css have its visibility = "hidden" and display = "none" I have an <a> and an onclick that calls showElement
<a onclick="showElement()">[add more]</a>
I don't understand why it won't show my div when I click on it? Anythoughts on the matter?
I have this script:
function showElement()
{
document.getElementById("previousEmployment2").style.visibility = "visible";
document.getElementById("previousEmployment2").sytle.display = "block";
}
I had an alert in there and that went off, so I know its at least getting there.
I have a div that's id is "previousEmployment2" and in my css have its visibility = "hidden" and display = "none" I have an <a> and an onclick that calls showElement
<a onclick="showElement()">[add more]</a>
I don't understand why it won't show my div when I click on it? Anythoughts on the matter?