I have a click event of save button and inside that event I fired submit button. Now whenever I click save button it refresh the page. I don't want to refresh. Please anybody help to solve this problem.
$(document.body).on('click','#saveid',function(){
$('#idsubmit').click();
});
I have a form and submit button inside it. There is a save button outside the form.
<form id="idx" action="@Url.Action("Admission","Admission")" method="post" enctype="multipart/form-data">
<input style="width:150px" type="file" name="filea" id="idFile" />
<input type="submit" id="idok" value="OK" />
</form>
<button type="button" id="saveid">Save</button>