<?php
/**
* @file
* Hooks for field_placeholder module.
*/
/**
* Define field placeholder supported widgets.
*
* @return
* An array whose keys are the widget names and whose value are the widget
* item where the placeholder will be attached.
*/
function hook_field_placeholder_info() {
return array(
'text_textfield' => 'value',
'number' => 'value',
'email_textfield' => 'email',
);
}
1. Get the form's id. (view page source)
2. Suppose the form's id is 'form_id', add this javascript code:
$(document).ready(function
$("#form_id :input").click(function(){
$(this).val('');
});
});