Disappearing text in Breezing Forms / FacileForms text area when clicked - Breezing Forms / FacileForms how to's

Disappearing text in Breezing Forms / FacileForms text area when clicked. It is useful to have some information text in the Breezing Forms / FacileForms text areas or text boxes.

Home Joomla - VirtueMart Breezing Forms / FacileForms Disappearing text in Breezing Forms / FacileForms text area when clicked
Disappearing text in Breezing Forms / FacileForms text area when clicked
  • Joomla 1.5
  • Breezing Forms/
    FacileForms

It is useful to have some information text in the Breezing Forms / FacileForms text areas or text boxes.
With this small piece of Javascript the text will clear when the user clicks in the text area of your Breezing Forms / FacileForms form.



Breezing Forms / FacileForms textarea click delete







Make a normal Breezing Forms / FacileForms textarea element.
On the Scripts Tab of the element insert this piece of code-
 
function ff_message_action(element, action){
    switch (action) {
        case 'click': 
    if (element.value=='Please write your message here.'){element.value=''};
        break;
 
        case 'blur': 
   if (element.value==''){element.value='Please write your message here.'};
            break;
        default:; 
    } 
 }
 
Breezing Forms / FacileForms textarea click delete

The function name "ff_message_action(element, action)" must have the element name as the first portion.
In this case the textarea element is named message.
In the value area of the textarea "Settings" form you place the text that you used in the Javascript.
 
Please write your message here.
 


Breezing Forms / FacileForms textarea click delete
Last Updated on Wednesday, 16 December 2009 15:31
 

Latest Articles

VirtueMart
Your Cart is currently empty.

Paypal Donation

If you use this module on your site please donate a small amount.
Any donation amount appreciated.



Disappearing text in Breezing Forms / FacileForms text area when clicked|Breezing Forms / FacileForms how to's



Disappearing text in Breezing Forms / FacileForms text area when clicked. It is useful to have some information text in the Breezing Forms / FacileForms text areas or text boxes.


element, text, message, action, value, breezing, forms, facileforms, case, textarea, write, break, form, area, piece, javascript, function, switch, click, blur, place, used, settings, named, portion, default, scripts, boxes, small, areas, information, useful, clear, user, tab, insert, joomla, normal, clicks, code


guru

We use cookies to improve our website and your experience when using it. Cookies used for the essential operation of the site have already been set.
To find out more about the cookies we use and how to delete them, see our privacy policy.

I accept cookies from this site.