Still using jQuery, you can do this:
$('form').submit(function() {
// Use this to echo in JS console.
console.log( $(this).attr('action') );
// Use this to display a popup.
alert( $(this).attr('action') );
});
This will track every form being submitted.
Place this between <script>
tags or in a JS file. Like @dev said, this for debug purpose, don’t keep this in your code.
You may have to wait for Document to be ready, then you’d use :
// Needs jQuery too.
$(function() {
// Copy code here.
});