jquery getting post action url

Posted by bandhunt on Stack Overflow See other posts from Stack Overflow or by bandhunt
Published on 2010-03-31T05:10:34Z Indexed on 2010/03/31 5:13 UTC
Read the original article Hit count: 374

Filed under:

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!

© Stack Overflow or respective owner

Related posts about jQuery