It will listen to a button with an id of "btn-submit". So it is listening to the ID of the button and not all button clicks:
This is the button code:
<div class="form-submit" id="btn-submit">
<button class="btn btn-primary submit">Submit</button>
</div>
And the JavaScript code would be:
$('#btn-submit').on("click", function(e) {
... View more