unobtrusive "default" text in input WITHOUT jQuery
Posted
by Adam Kiss
on Stack Overflow
See other posts from Stack Overflow
or by Adam Kiss
Published on 2010-05-18T11:03:21Z
Indexed on
2010/05/18
11:11 UTC
Read the original article
Hit count: 179
Hello,
i'm trying to write unobtrusive default/placeholder text in input (actually, relatively placed label
over input
, which hides on onFocus
, and stays hidden if input isn't empty on onBlur
), but I don't want to use jQuery, because this is the only javascript used on page - therefore using jQuery seems a bit over the top.
Please, how can I do this without jQuery?
Thank you.
© Stack Overflow or respective owner