Hi I wanted to know how I might be able to apply this to multiple text boxes.
For some reason it only lets me attach it to one on the page.
Thank you
Code:<html> <head> <meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" /> <title>sample page</title> <script type="text/javascript"> //<![CDATA[ function verify(frm) { var element = document.getElementById('txt').value; element = element.replace(/[^0-9,\.]/,""); document.getElementById("txt").value = element; } //]]> </script> </head> <body> <form action=""><input type="text" onkeyup="verify(this.id);" name="txt" id="txt" /></form> </body> </html>



Reply With Quote

Bookmarks