narasiman rao

narasiman rao

  • NA
  • 519
  • 768.6k

convert numbers to words using java script

Sep 6 2012 6:43 AM
How to convert numbers into words javascript



<head runat="server">
  <title>Untitled Page</title>
  <script type="text/javascript" src="toword.js">
  </script>
</head>
<body>
 <div>
 
  <form name="test" action="Default.aspx">
  <input type="text" name="inum" value="" size="18"/><br />
  <input type="button" value="To Words" onclick="test.rnum.value = toWords(test.inum.value);"/><br />
  <textarea name="rnum" cols="40" rows="5"></textarea>
  </form>
  </div>
</body>
</html> 

The above code  i applies for converting numbers in to words.

but when i run the application  when  i type the number it is not converting into words why?
wat is the problem in the above code.please help me.


Answers (1)