1

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.

1 Answer 1

1

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';" 
);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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