Widgets > Input Widgets > wijinputnumber > Format as a Percentage |
The wijinputnumber widget allows you to formant input as a percentage. Set the type option to percent to take advantage of this feature. See the InputNumber > Percent sample of the MVC Control Explorer live demo at http://demo.componentone.com/ASPNET/MVCExplorer/inputnumber/Percent.
<body>
tags of the page. The starting value of the wijinputnumber will be 50.
<input type="text" id="textbox1" value="50%" />
<h6>Options</h6>
<p>value=50; decimalPlaces=4</p>
<script id="scriptInit" type="text/javascript">
$(document).ready(function () {
$("#textbox1").wijinputnumber(
{
type: 'percent',
decimalPlaces: 4,
showSpinner: true
});
});
</script>