Created
October 22, 2014 21:24
-
-
Save ratulcse10/7d833a50c1973f799fdb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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