I am trying to put multiple buttons on single form.
Based on submit button, I want to process different action to form

```
<script type="text/javascript">
    $("#<portlet:namespace/>Form").submit(function(e) {
        //alert("test");
            var action = ???
        if (action == 'Add') {
            alert("add");
        } else if (action == 'Edit') {
            alert("edit");
        } else if (action ==  'Delete') {
            alert("delete");
        } else{
            alert("error");
        }
    });
</script>

<form name="<portlet:namespace/>Form" method="POST">
    <table>
        <tr>
            <td><input type="submit" name="action" value="Add"></input></td>
            <td><input type="submit" name="action" value="Edit"></input></td>
            <td><input type="submit" name="action" value="Delete"></input></td>
        </tr>
    </table>
</form>

```

How do I get which button triggered the submission of form?