Programming

HTML Textbox Input Tooltip?

steloflute 2013. 8. 29. 23:30

http://stackoverflow.com/questions/7576733/html-textbox-input-tooltip

 

 

As said by rudeovski, you can use placeholder in modern browsers.
But for the older one, you'll need a javascript/jQuery fallback.

Here is a good example:

http://uniquemethod.com/html5-placeholder-text-with-modernizr-and-jquery-fallback

This will generate placeholder fallback for you automaticly.

You simply have to write:

<input type="text" id="discount" placeholder="discount" />