Skip to content

Instantly share code, notes, and snippets.

@ratulcse10
Created October 22, 2014 21:24
Show Gist options
  • Save ratulcse10/7d833a50c1973f799fdb to your computer and use it in GitHub Desktop.
Save ratulcse10/7d833a50c1973f799fdb to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#submitBtn").click(function(){
var $form1= $('#form1:input');
var $form2= $('#form2:input');
});
});
</script>
</head>
<body>
<form id="form1">
First name:
<input type="text" name="FirstName" value="Mickey"><br>
Last name:
<input type="text" name="LastName" value="Mouse"><br>
</form>
<form id="form2">
First name:
<input type="text" name="Age" ><br>
Last name:
<input type="text" name="Univ" ><br>
</form>
<input type="button" id="submitBtn" value="Submit">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment