Clearing form input values onclick

How can I automatically clear the value data for form inputs when a user clicks on the input?  I've tried adding both onClick and onFocus JavaScript to the text input HTML tag in jquery.webForms.js, but nothing seems to work.

Can someone help me out?

Quote · 18 Apr 2010

Hello, I think you will need add extra params in form constructor! For example (add cleared function in polls form in BxPollModule) :

'tags' => array (
'type'     => 'text',
'name'     => 'tags',
'caption'  => $aLanguageKeys['tags'],
'required' => false,
'info'     => $aLanguageKeys['tags_sep'],

'value' => 'default tag',
),

should add these strings:

'tags' => array (
'type'     => 'text',
'name'     => 'tags',
'caption'  => $aLanguageKeys['tags'],
'required' => false,
'info'     => $aLanguageKeys['tags_sep'],

'attrs' => array('onchange' => 'this.value=""'),
),

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 18 Apr 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.