jQuery Prefix Input

jQuery Plugin

jQuery plugin untuk memberikan awalan pada input.

Contoh:

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" />

<!-- 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>

keyboard_arrow_up