Solved

Form Text Input box and javascript

Posted on 2006-06-23
2
209 Views
Last Modified: 2010-04-25
hi i am using the dreamweaver behavior

onclick="MM_setTextOfTextfield('enquiry','','')"

I am trying to set the initial text to dissapear on click, this works but i want to set it up so that if a user clicks again on their own text, it wont dissapear again.

are these behaviours the best thing to be using anyway

can anyone help

thanks
0
Comment
Question by:socross
2 Comments
 
LVL 23

Accepted Solution

by:
adilkhan earned 250 total points
ID: 16981489
Call you Function on the textbox like below, replace 'my orignal value' with whatever the default value you have in text box.

onclick="if(this.value=='my orignal value') {MM_setTextOfTextfield('enquiry','','')}"
0
 
LVL 1

Author Comment

by:socross
ID: 16982137
Brilliant
thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now