show/hide div +form
Posted: Sat May 10, 2008 12:22 am
Hi,
I am using the following peice of code to show/hide a div tag:
<a href="#" id="pform-show" class="showLink" onclick="showHide(\'pform\');return false;">Contact us about this product</a>
Once clicked it shows the form, if the form is submited but has errors the page reloads, but the div is closed. Is there away to make it open the div tag after the form is submited so the missed fields can be corrected and/or the success message be displayed?
Thanks
I am using the following peice of code to show/hide a div tag:
<a href="#" id="pform-show" class="showLink" onclick="showHide(\'pform\');return false;">Contact us about this product</a>
Once clicked it shows the form, if the form is submited but has errors the page reloads, but the div is closed. Is there away to make it open the div tag after the form is submited so the missed fields can be corrected and/or the success message be displayed?
Thanks