jQuery Plugin For Editable DIV Elements - editableDiv
File Size: | 3.93 KB |
---|---|
Views Total: | 4351 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

editableDiv is a jQuery plugin that converts a simple DIV element into an editable text field with support for custom placeholder.
How to use it:
1. Download and add the jquery.editablediv.js
after jQuery JavaScript library.
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script> <script src="/jquery.editablediv.js"></script>
2. Create a DIV element with the placeholder
attribute.
<div placeholder="Title" id="demo"></div>
3. Call the function on the DIV element and done.
$("#demo").editableDiv();
4. Override the placeholder text during initialization.
$("#demo").editableDiv("Override placeholder text");
This awesome jQuery plugin is developed by phitha. For more Advanced Usages, please check the demo page or visit the official website.