I have a form where i have two submit buttons
<button name="save" type="submit" id="save" class="btn btn-danger">Save <span class="glyphicon glyphicon-send"></span></button>
<button name="send" type="submit" id="send" class="btn btn-danger">Send For Approval <span class="glyphicon glyphicon-save-file"></span></button>
use the following to process in java-script
$('form#estimations').on('submit' ,function(){
// my code
}
So depending on button press i want to have different code for each button but within the same function.
I have tried checking on stack overflow but most answers revolve around on click events but i am using .on functionality.