javascript - How to get the full target url of a form with get methood -


i have form has lot of hidden input elements being added javascript. don't have access site form pointing , there lot of server side url redirects can't debug javascript.

if set this:

$('#myform').submit(function(e){     e.preventdefault();     // way see full url form point }); 

it me out lot in matching url 1 provided client.

thanks

alert(this.action); 

the action attribute should available on form element.

example: https://jsfiddle.net/zq4tku7r/


Comments