I have been able to customize it in the search form using template file. I am not able to figure out how to do this in the node creation/edit forms. eg: http://drupal.org search box at the left top.


I overrode the form in the template.php

$form['title']['#attributes'] = array(
  'onblur' => "if (this.value == '') {this.value = '".$form['title']['#value']."';} this.style.color = '#333333';",
  'onfocus' => "if (this.value == '".$form['title']['#value']."') {this.value = '';} this.style.color = '#333333';" 
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.