javascript - How to custom text prompt in input tag? -


is there way ( languages css, html or javascript ) custom text prompt in input tags ?

for text prompt mean vertical flashing line in input tags.

i assume prompt mean 'enter full name'

html5 forms support default message attribute.

if want use css, check out overlabel approach found in this article.

if neither of meet fancy, user old fashion javascript focus , blur events. need logic ensure user has not entered text , clear our value (on focus) or put default text (on blur). sure can find code via google search.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -