Solved

Form Text Input box and javascript

Posted on 2006-06-23
2
213 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:
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Title # Comments Views Activity
Find & replace in Dreamweaver code to: add +1 to many id's 3 268
CF Buider 2 connect to remote server 6 87
Adobe Indesign CS6 4 144
CS6 Adobe Dreamweaver Alphanumeric list 4 123
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…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

763 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