I am creating the contacts page of a website and want the div element "contact-area" to hide after they click the "submit button" and a successful email has been sent. The Javascript function to hide a Div element:
function hideDiv(){
document.getElementbyId(contact-area).style.visible="hidden";
}
The code is called by using "OnClientClick" in the button element:
philhunter
Member
7 Points
12 Posts
Web Form Javascript to hide a div not working
Feb 21, 2012 03:31 PM|LINK
I am creating the contacts page of a website and want the div element "contact-area" to hide after they click the "submit button" and a successful email has been sent. The Javascript function to hide a Div element:
The code is called by using "OnClientClick" in the button element:
When I click the submit button nothing happens. There is no compile errors, is there something I am missing here??