Setting and clearing default value in input box
-
Hi, thanks for a great plugin, I like what it does.
I’ve been racking my brains over this problem. In Forms.php I’ve added a line under $form to display a default value in my input box:
->setDefaultValue(‘E-mail address…’)
When a user clicks in the input box I would like the default text to disappear (it’s what the user expects). I understand this is easily achieved with Javascript, but where do I put that javascript?
Or was Forms.php the wrong place to set a default value?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Setting and clearing default value in input box’ is closed to new replies.