Solved

Form Text Input box and javascript

Posted on 2006-06-23
2
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Saqib Khan 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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 …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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