I'm using Robin Herbot's inputmask jquery plugin and I want to change the default currency symbol (by default, its a dollar currency symbol) to a PESO currency symbol or remove the currency symbol.
Below is what I've tried, yes the symbol changes and the symbol is removed but it won't let me type anything.
$(document).ready(function(){
$("#currency1").inputmask({ alias : "currency", mask : "0.00" });
$("#currency2").inputmask({ alias : "currency", mask : "₱ 0.00" });
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.inputmask/3.2.6/jquery.inputmask.bundle.min.js"></script>
<label>REMOVE CURRENCY SYMBOL</label><br>
<input type="text" id="currency1" /><br>
<label>CHANGE THE CURRENCY SYMBOL</label><br>
<input type="text" id="currency2" />
!0
and!1
syntax? Isfalse
andtrue
too common? I find it unnecessary irritating. – Gruber