Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Testing</title>  
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.js" type="text/javascript"></script>
        <script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.js" type="text/javascript"></script>
        <script type="text/javascript"> 
            $(function(){
                $("#myForm").validate({
                    submitHandler: function(form) {
                        console.log('using id',form.myElementID.value);
                        console.log('using name',form.myElementName.value);
                    }
                });                
            });
        </script>
    </head>
    <body>
        <form id="myForm">
            <input type="text" name="myElementName" id="myElementID" />
            <input type="submit" />
        </form>
    </body> 
</html> 
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
NotionCommotionpro
0viewers