title: How to append an extra 'Zero' after decimal in Javascript
body: <p>Hye,
  Iam new to javascript working with one textbox validation for decimal numbers . Example format should be 66,00 .but if user type 66,0 and dont type two zero after comma then after leaving text box it should automatically append to it .so that it would be correct format of it . How can i get this .How can i append ?? here is my code snippet.</p>
  
  <pre><code> function check2(sender){
             var error = false;
             var regex = '^[0-9][0-9],[0-9][0-9]$';
             var v = $(sender).val();
             var index = v.indexOf(',');
             var characterToTest = v.charAt(index + 1);
             var nextCharAfterComma = v.charAt(index + 2);
  
              if (characterToTest == '0') { 
  
                //here need to add 
              }
  }
  </code></pre>