I am displaying some records table where each row contains two buttons like
"Accept" and "Reject"
If I click on "Accept" then the form should be submitted and the button should Replace with "Cancel" button and page should reload with fresh content in the table.
And If I click on "Reject" button then "Accept" button should hide And page should reload with fresh content.
I have tried something but did not work.
$(document).ready(function(){
$("#upComing").submit(function(){
alert("Submitted");
});
$("#btnAccept").click(function(){
$("form[value='Accept${upComLeave.employee_id}']").submit();
location.replace("#btnCancel");
});
});
please help me.
btnAcceptand showbtnCancel, using.hide()and.show()