title: How to get numbers to Indian rupees format in web page like 10,000.00
body: <p>How do I make it make when I enter the number it comes with Indian rupees format and the result also pastes on the total input box in the Indian rupees format? 
  Please help with this.</p>
  
  <pre><code>&lt;input onblur="findTotal()" type="text" name="qty" id="qty1"/&gt;&lt;br&gt;
  &lt;input onblur="findTotal()" type="text" name="qty" id="qty2"/&gt;&lt;br&gt;
  &lt;input onblur="findTotal()" type="text" name="qty" id="qty3"/&gt;&lt;br&gt;
  &lt;input onblur="findTotal()" type="text" name="qty" id="qty4"/&gt;&lt;br&gt;
  &lt;input onblur="findTotal()" type="text" name="qty" id="qty5"/&gt;&lt;br&gt;
  &lt;input onblur="findTotal()" type="text" name="qty" id="qty6"/&gt;&lt;br&gt;
  &lt;input onblur="findTotal()" type="text" name="qty" id="qty7"/&gt;&lt;br&gt;
  &lt;input onblur="findTotal()" type="text" name="qty" id="qty8"/&gt;&lt;br&gt;
  &lt;br&gt;&lt;br&gt;
  Total : &lt;input type="text" name="total" id="total"/&gt;
  </code></pre>
  
  <p>Here the javascript</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function findTotal(){
      var arr = document.getElementsByName('qty');
      var tot=0;
      for(var i=0;i&lt;arr.length;i++){
          if(parseInt(arr[i].value))
              tot += parseInt(arr[i].value);
      }
      document.getElementById('total').value = tot;
  }
  
  &lt;/script&gt;
  </code></pre>