creating text field where text disappears upon click


Is there a slick way in Rails to create a username text field in which
it starts out reading, "Enter your username" and once you click on the
text field, the "Enter your username" text disappears?

Thanks, - Dave

I don't know of a slick way (yet) but here's the HTML to produce said

<input type="text" name="name" value="Enter your name"
onclick="if(this.value=='Enter your name')this.value='';">