Return to Snippet

Revision: 37392
at December 9, 2010 10:01 by gera3d


Initial Code
$html = '<input type="text" name="' . $name . '" value="' . esc_attr( $value ) . '"' . $atts . 'onfocus="if(this.value==\'';
$html = $html . esc_attr( $value ) . '\') this.value=\'\';" onblur="if(this.value==\'\') this.value=\'' . esc_attr( $value ) . '\';" </textarea>';

Initial URL
http://www.ultimatelimoservice.com/reservations

Initial Description
This was a fix for the form that allowed me to automatically replace the text when I focused on area.

Find the file text.php inside modules.  Replace line 89 with this code.

Initial Title
Contact Form 7 onFocus fix

Initial Tags
form

Initial Language
PHP