isNumeric only available for jQuery 1.7. using plain JavaScript for now.