[jquery] jquery getting post action url

I'm trying to access the post target action in a jquery function.

example:

<form action="/page/users" id="signup" method="post">

I'd like to access the "action" part - "/page/users" in this case.

$('#signup').live("submit", function(event) {
    // get this submitted action
}

Seems like I'm missing something very simple. I see the value in the dom but don't know where it's stored in jquery.

Thanks!

This question is related to jquery

The answer is


Clean and Simple:

$('#signup').submit(function(event) {

      alert(this.action);
});

Try this ocde;;

var formAction = $("#signup").attr('action');