Cross-browser jQuery Input Prefix Plugin - input-prefix.js

File Size: 18 KB
Views Total: 802
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Cross-browser jQuery Input Prefix Plugin - input-prefix.js

input-prefix.js is a dead simple jQuery plugin which adds an undeletable prefix into your input field using data-prefix attribute.

See also:

How to use it:

1. Download and include the core JavaScript file jquery-plugin-input-prefix.js after jQuery library as follow:

<script src="//code.jquery.com/jquery.min.js"></script>
<script src="jquery-plugin-input-prefix.js"></script>

2. Specify the prefix displayed at the beginning of your input field:

<input type="text" id="name" name="name" data-prefix="jQuery-">

This awesome jQuery plugin is developed by gfruleux. For more Advanced Usages, please check the demo page or visit the official website.