Is there a way to clear the label inside an exposed filter textbox when the user clicks on it?

For example, I have an exposed filter with the label "Enter Model Number Here". So when I click to enter the text their I would like the label to be cleared.

Thanks!
Nimi

Comments

dawehner’s picture

Category: task » support
Status: Active » Fixed

You could do this with custom js code.

See http://drupal.org/node/121997 and jquery in general.

nimi’s picture

Could you be a bit more specific?

I know it should be a combination between javascript/Jquery i'm just not sure how to go about it.

How do I specifiy that specific label?
Where do I put in that code, in a custom tpl file or template.php?

Thanks,
Nimi

dawehner’s picture

http://drupal.org/node/301181 helps to select a specific label.

For example the status element of this form would be

$('#edit-sid-wrapper label')

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.