Widgets > Input Widgets > wijinputnumber > Format as Currency |
The wijinputnumber widget allows you to formant input as currency. Set the type option to currency to take advantage of this feature. See the InputNumber > Currency sample of the MVC Control Explorer live demo at http://demo.componentone.com/ASPNET/MVCExplorer/inputnumber/Currency.
<body>
tags of the page.<input type="text" id="textbox1" value="25.5" />
</div>
tags you added in the previous step, enter the following jQuery script to initialize the wijinputnumber widget and set the type option.
<script id="scriptInit" type="text/javascript">
$(document).ready(function () {
$("#textbox1").wijinputnumber(
{
type: 'currency',
decimalPlaces: 2,
showSpinner: true
});
});
</script>