Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Javascript: Clear input box when clicked
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 01 November 2001 :  08:56:39  Show Profile  Send RaiderUK a Yahoo! Message
I'm not too good on the javascript side, can somone please help me with this little problem. Ihave a input box which reads Search text here, when somone clicks on it to enter text i would like it to clear.

Thanks.

Daniel.

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 01 November 2001 :  09:04:31  Show Profile  Visit Kat's Homepage
<input name=fieldname onclick = "JavaScript:document.formname.fieldname.value = ''">

Try that.

KatsKorner

btw - these are single quotes - value = ''


Edited by - kat on 01 November 2001 09:05:13
Go to Top of Page

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 01 November 2001 :  09:43:07  Show Profile  Send RaiderUK a Yahoo! Message
thanks alot Kat.

Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 01 November 2001 :  10:08:25  Show Profile  Visit Kat's Homepage
No problem!

KatsKorner
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07