STEFAN CROWE
PHP, MySQL and JavaScript Developer. WordPress fanatic.

JavaScript

Tutorials » JavaScript

Clear textbox on click using JavaScript

31st January 2012 18:34
Category: JavaScript — Written by Comments (0)

It’s such a simple design choice: you want to have some default text in a textbox as an indication to the purpose of the form field. This is commonly used in search boxes to prompt the user and minimise clutter from excess labels. In fact, you can see an example right here on this website [...]