Friday, January 22, 2016

If you need an effect to happen at an input when you either click in the field or tab to the field in HTML...

...jQuery .bind to "focus" to make it happen. "focus" is better than "click" for something like this (i.e. a watermark feature) as it supports arrival by tab and not just arrival by mouse click.

No comments:

Post a Comment