Hola,

You'd want to do something like this, probably:

$("input").click(function() {
    var foo = $(this).attr("name");
    //do something
});

Alternatively you could just set a click event to each one.

$("#edit_1").click(function() {
    //do something...
});
$("#edit_2").click(function() {
    //do something...
});
$("#edit_3").click(function() {
    //do something...
});
$("#edit_4").click(function() {
    //do something...
});


On Apr 5, 6:17 am, keyser_soze <[EMAIL PROTECTED]> wrote:
> Hi,
>
> For example I have
>
>  <form method="post">
>     <input type="submit" name="edit_1" id="edit_1" value="Edit_1">
> <br />
>     <input type="submit" name="edit_2" id="edit_2" value="Edit_2">
> <br />
>     <input type="submit" name="edit_3" id="edit_3" value="Edit_3">
> <br />
>     <input type="submit" name="edit_4" id="edit_4" value="Edit_4">
> <br />
>    </form>
>
> So how can I know that Edit_3 was clicked or other?

Reply via email to