this is what I have so far:
$j(element)..keypress(function(e){ var val = $j(this).val(); if ((\"1234567890.\").indexOf(e.charCode) > -1){
This checks a decimal number, with an optional +/- sign character. Found under 5sec in google. /^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/
/^\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*$/