Monday, March 26, 2012

Panel and HTML Form

Panel and HTML Formu can make use of div instead of div and then make use of javascript to hide show div using it's display property.

e.g.

To Hide - document.getElementById("divPanel").style.display = "none";
To Show - document.getElementById("divPanel").style.display = "block";
How can i make it as a link to click on?
you can showHide the div like this:
<script language="javascript" type="text/javascript">
function showHide(id)
{
document.getElementById(id).style.display=document.getElementById(id).style.display=="none"? "block" : "none";
}

</script>

example here:
http://www.geula.biz/works/sample/js/showHideDiv.htm

but you have another problem in your code you have Form inside Form.
and this syntax is impossible.

good lack!
Thank you very much!

0 comments:

Post a Comment