3
I have a field that accepts 4 digits, I would like that, after filling the field, when switching to another field, if the 4 digits are not typed, that the field is auto completed with zeros on the left.
What would a Javascript function look like? And how to call it inside the Textbox below?
Field:
<telerik:RadTextBox ID="txtAgencia" runat="server" Width="80px" MaxLength="4" NumberFormat-DecimalDigits="0" onblur="caractNaoPermit(this, 'numeric'); formatCamp(this,'numeric');" onkeypress="return(validaConteudo(event, this, 'numeric'))" onfocus="removeCaracs(this,'numeric')" />