CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 hidding form controls

Print topic Send  topic

Author Message
JunorBot

Posts: 3
Posted: 05/30/2007, 5:53 AM

hi All

I need help with hidding some controls in an html form. I have this code that works fine. The thing is if I hide on control I need the other one to display exactly at the same possion as the previous one. Is this posible.

<script type="text/javascript">

function changeIt() {
if(document.theform.chk.checked){
document.theform.textbox.style.visibility="hidden"; //set to visible
document.theform.selectname.style.visibility="visible"
}else{
document.theform.textbox.style.visibility="visible";
document.theform.selectname.style.visibility="hidden" //set to visible
}
}
</script>
</head>

<body>
<form name="theform">
<input type="checkbox" name="chk" value="" onclick="changeIt()">
<input type="text" name="textbox" style="visibility: visible">
<select name="selectname" style="visibility: hidden">
</form>

please help.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.