Login   Register  
PHP Classes
elePHPant
Icontem

File: templates/default/htmlform_jscript.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Stefan Gabos  >  PHP Forms Generation and Validation Class  >  templates/default/htmlform_jscript.js  >  Download  
File: templates/default/htmlform_jscript.js
Role: Auxiliary data
Content type: text/plain
Description: java script file
Class: PHP Forms Generation and Validation Class
Generate and validate HTML forms
Author: By
Last change:
Date: 7 years ago
Size: 214 bytes
 

Contents

Class file image Download
function digitsOnly(e)
{

    var charCode = (e.which) ? e.which : event.keyCode
    
    if (charCode > 31 && (charCode < 48 || charCode > 57)) {

        return false

    }

    return true
    
}