JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/ui-lightness/jquery-ui.css">

<form id='formOne'>
    <input type='text' />
    <input type='submit' value='submit one' />
</form>
<form id='formTwo'>
    <input type='text' />
    <input type='submit' value='submit two' />
</form>
<form id='formThree'>
    <input type='text' />
    <input type='submit' value='submit three' />
</form>

JavaScript

$('form').submit( function(){
       return submitForm.call( this );
 });

function submitForm() {
       // alert the id of the form that was clicked
    alert( this.id );
    return false;
}