I have spent several hours trying to find a solution to my issue, but just can\'t seem to find the proper solution. Thanks in advance for your assistance!
I have ON
I have the same issue. but the thing is the first button function is in JS while the other is using PHP.
$('#add-bookingid').submit(function(e){
e.preventDefault();
calculateDistance();
});
You see $('#add-bookingid').submit so both buttons have same button type as submit.
Main Purpose
Button# 1
Button# 2