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?
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? |
Hello, I think you will need add extra params in form constructor! For example (add cleared function in polls form in BxPollModule) : 'value' => 'default tag', 'tags' => array ( 'attrs' => array('onchange' => 'this.value=""'), PS: If possible do not write me personally, please try to ask on the forum first |