JavaScript Tutorial

jQuery.isNumeric()

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>jQuery Find Entered Value is Numeric or Not</title>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $("button").click(function(){
            var inputVal = $("input").val();
               alert($.isNumeric(inputVal));
        });
    });
</script>  
</head> 
<body>
    <form>
        <p>Enter any value and click check button. If it is numeric alert true otherwise false:</p>
        <input type="text">
        <button type="button">Check</button>
    </form>
</body>
</html>