I\'m trying to access the post target action in a jquery function.
example:
$('#signup').on("submit", function(event) { $form = $(this); //wrap this in jQuery alert('the action is: ' + $form.attr('action')); });
Try this ocde;;
var formAction = $("#signup").attr('action');
Clean and Simple:
$('#signup').submit(function(event) { alert(this.action); });