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. With this small piece of Javascript the text will clear when the user clicks in the text area of your Breezing Forms / FacileForms form. ![]() 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:; } } ![]() 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.
![]() |
Last Updated on Wednesday, 16 December 2009 15:31 |