Login

jQuery Prefix Input


jQuery plugins to provide the input prefix.


Example:

Install: Selector by class name in all the input.

Member Name <input type="text" class="demo" data-prefix="JKT48_" />
Website <input type="text" class="demo" data-prefix="http://" />
Phone <input type="text" class="demo" data-prefix="+62" />

jQuery:

<!-- Include jQuery -->
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>

<!-- Include prefix-input.js -->
<script src="js/jquery.prefix-input.js"></script>
<script>        
$(function() {
    $(".demo").prefix();
});
</script>

Demo Fork me on GitHub



Contributor:

issues