Quantcast
Channel: jQuery Plugins - field
Viewing all articles
Browse latest Browse all 10

Placeholder attributes

$
0
0

An easy way to set default text in an input field which disappears on focus and reappears on blur if the textbox is empty.

Example:
$('#myInputField').placeholder('default text');

Note:
Focused elements get the CSS class 'focused'. All other elements that use the plugin get the CSS class 'defocused'.


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>