How To Make A Div Hidden Or Visiable Javascript
RegisterLogin
How To Make A Div Hidden Or Visiable Javascript
Post Description: today i was lost, so i am posting here so incase someone else has the same question
Tags: how, to, make, a, div, hidden, or, visiable, javascript
This Post Was Posted On Mar 29, 2010 By Hostman #3303
Post Description: today i was lost, so i am posting here so incase someone else has the same question
Tags: how, to, make, a, div, hidden, or, visiable, javascript
This Post Was Posted On Mar 29, 2010 By Hostman #3303
How To Make A Div Hidden Or Visiable Javascript by Hostman
i wanted to know how to make a div visible or hidden, you can use something like this
lets say i have an input in a form that looks like this
<input type="text" id="Button" name="Button" value="Send" onclick"HideButton(1);"> br>
as you can see, when you click on the button, it calls the HideButton function which in turns tells your browser to hide the input field
you can use this function to make it work
function HideButton(Hide){
if(Hide == 1){
document.getElementById('SendButton').style.visibility = "hidden";
}else{
document.getElementById('SendButton').style.visibility = "visible";
}
}
you can modify this to change the input to a div
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
jini
#4572 1
maybe you like this one:
http://www.plus2net.com/javascript_tutorial/hide-layer2.php
http://www.plus2net.com/javascript_tutorial/hide-layer2.php
Oct 26, 2010 Reply Report abuse
©2012 Webune Forums - Wed Dec 19, 2012 8:17 am
Powered by: Webune Forums V3
Powered by: Webune Forums V3