Skip to content

A jQuery plugin for working with placeholder attributes on input fields.

License

Notifications You must be signed in to change notification settings

thisarmy/placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PLACEHOLDER
===========

A jQuery plugin that adds placeholder() and serializeWithoutPlaceholders()
methods. This manages the placeholder value text and adds/removes a class from
an input element so that you can style and use placeholder text across
different browsers.


USAGE
=====

<input type="text" name="someinput" placeholder="placeholder text" value="">

<style>
input[type=text] {font-size: 14px; color: #333;}
input.placeholder {font-size: 12px; color: #ccc;}
</style>

<script>
$('input[name=someinput]').placeholder();
</script>

About

A jQuery plugin for working with placeholder attributes on input fields.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published