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" />
'Programming' 카테고리의 다른 글
10 Javascript Performance Boosting Tips from Nicholas Zakas (0) | 2013.09.02 |
---|---|
(JavaScript) How to load local script files as fallback in cases where CDN are blocked/unavailable? (0) | 2013.08.30 |
How to delete file in Java (0) | 2013.08.26 |
C# Language Specification Version 5.0 (0) | 2013.08.25 |
racket-clojure (0) | 2013.08.21 |