carl allan Posted November 9, 2005 Share Posted November 9, 2005 Hi, can i cancel a form? Meaning, can i cancel it when a certain event happens, meaning it will not show on the page? Help is appreciated. Link to comment Share on other sites More sharing options...
Chocolate570 Posted November 9, 2005 Share Posted November 9, 2005 Ya, make a <div> around the form, and set the div id too 'divthing'. Now, in the head section, make a javascript function that will look like this: <script type="text/javascript">function checkthing(){document.getElementById('divthing').style="visibility:hidden;"}</script> Then, when you want to hide the form, just call that funciton. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now