I have written below on my custom button, This code is not working.
$(document).ready(function () {
var saveButton = $('<input/>').attr({ type: 'button', name: 'ctl00$ContentContainer$MainContent$EntityFormControl$UpdateButton', value: 'Save', id: 'btnSaveValidate', class: 'btn btn-primary button next submit-btn' });
$("#NextButton").after(saveButton);
$("#btnSaveValidate").bind("click", function () {
WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ContentContainer$MainContent$EntityFormControl$UpdateButton", "", true, "", "", false, true));
});
});