Like... I want text fields to say stuff like..
password....
and then when the user clicks in them, the text goes away, and allows them to type.
Like... I want text fields to say stuff like..
password....
and then when the user clicks in them, the text goes away, and allows them to type.
A very simple solution is to set the text staticly to the input box and add a javascript function to the OnFocus() event.
In the function, do something like
$("textbox").val("")
in your view template, set a default value
f.text_field :password, :value => "password"
in your javascript (assuming jquery here)
$(document).ready(function() {
//add a handler to remove the text
} );