#1  
Old 3rd July 2006, 09:43
signature16 signature16 is offline
Junior Member
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default java: change form input

I want to have the value of a text input field say something, but when the users clicks on the box to enter their own info....everything needs to go away allowing them to put their info in.


How do i do this?
Reply With Quote
  #2  
Old 3rd July 2006, 23:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Have a look at the source code of the HowtoForge front page, especially the form where you can subscribe to the HowtoForge newsletter. It does exactly the same.
__________________
Falko
--
Follow me on:
Reply With Quote
  #3  
Old 4th July 2006, 09:32
signature16 signature16 is offline
Junior Member
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<script type="text/javascript">

function ClearMe()
{

document.getElementById("Text1").value=" ";
}
</script>

<input type=text name="attribute1" class="attributeinput" size="15" value="First Name" id="Text1" onclick="ClearMe()"/>
Reply With Quote
  #4  
Old 5th July 2006, 11:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

So you got it working?
__________________
Falko
--
Follow me on:
Reply With Quote
  #5  
Old 5th July 2006, 19:50
signature16 signature16 is offline
Junior Member
 
Join Date: Apr 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i did get it working. thank you.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPtables slowing down my SSH login!? edge Server Operation 7 4th July 2006 14:56
change report client / site fpl General 18 29th June 2006 14:25
Firewall script ColdDoT Server Operation 1 9th May 2006 00:50
Change document root ftp from / to web - how? tom Installation/Configuration 11 23rd April 2006 01:49
SuseFirewall expert pls help zacch Installation/Configuration 11 17th March 2006 05:24


All times are GMT +2. The time now is 02:59.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th