Solved

Form Text Input box and javascript

Posted on 2006-06-23
2
208 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 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

9 Experts available now in Live!

Get 1:1 Help Now