Skip to content

Instantly share code, notes, and snippets.

View poonamdhomane's full-sized avatar

Poonam Dhomane poonamdhomane

View GitHub Profile
@poonamdhomane
poonamdhomane / NumToText.html
Last active January 27, 2023 09:29
Convert numbers to words using JavaScript
<html>
<head>
<title>HTML - Convert numbers to words using JavaScript</title>
<script type="text/javascript">
function onlyNumbers(evt) {
var e = event || evt; // For trans-browser compatibility
var charCode = e.which || e.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57)) return false;