Convert numbers into words on web page using JavaScript

Mar 16, 2015 By Mohammed Imtiyaz

Download Live Demo

Demo

Demo

Introduction

This tutorial will explain you how to convert numbers to words on a web form using JavaScript

Html

<html>

<head>

    <title>HTML - Convert numbers to words using JavaScript</title>

    <script src="http://www.ittutorials.in/js/demo/numtoword.js" type="text/javascript"></script>

</head>

<body>

    <h1>

        HTML - Convert numbers to words using JavaScript</h1>

    <input id="Text1" type="text" onkeypress="return onlyNumbers(this.value);" onkeyup="NumToWord(this.value,'divDisplayWords');"

        maxlength="9" style="background-color: #efefef; border: 2px solid #CCCCC; font-size: large" />

    <br />

    <br />

    <div id="divDisplayWords" style="font-size: 13; color: Teal; font-family: Arial;">

    </div>

</body>

</html>



Post your comment