Skip to content

vikas2151/jQuery.divPlaceholder.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

jQuery.divPlaceholder.js

A mostly-CSS-with-a-bit-of-jQuery plugin to emulate the placeholder attribute for contenteditable divs.

The placeholder text is added via a CSS psuedo-element, so it won't appear in the div content.

Usage

See the demo/demo.html page for an example.

Reference the JS and CSS files as usual.

Add a data-placeholder='Your default text' attribute to your div.

About

A mostly-CSS-with-a-bit-of-jQuery plugin to emulate the placeholder attribute for contenteditable divs.

Resources

Stars

Watchers

Forks

Packages

No packages published