Computing.Net > Forums > Web Development > make a hidden button + textbox

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

make a hidden button + textbox

Reply to Message Icon

Name: You know who we are.
Date: August 22, 2009 at 09:25:09 Pacific
OS: Windows Vista
CPU/Ram: 2GB
Product: Microsoft / Vista
Subcategory: HTML
Tags: html, javascript, Hidden objects
Comment:

Hello, I need to find a way to make hidden objects, mostly a textbox and a button, on my web site, does someone have a code I can use? I know it is possible. JQuery does not work on my server; I need just plain javascript.



Sponsored Link
Ads by Google

Response Number 1
Name: shutat
Date: August 22, 2009 at 22:26:17 Pacific
Reply:

You can try something like

<input id="tb" type="text" onmouseover="hide(this.id)" onmouseout="show(this.id)">

<script type="text/javascript">

function hide(id) {

   document.getElementById(id).style.visibility = "hidden";
}

function show(id) {

   document.getElementById(id).style.visibility = "visible";
}

</script>

If it works, all you'd need to do is use whatever trigger you need for the desired functionality.

HTH


0
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: make a hidden button + textbox

a box and a save button www.computing.net/answers/webdevel/a-box-and-a-save-button/1860.html

Making a useful website www.computing.net/answers/webdevel/making-a-useful-website/457.html

how to make a website www.computing.net/answers/webdevel/how-to-make-a-website/2840.html