I have a form with method Post and action with URL, when I click button to submit, after submitting, it gets refreshed. I want to prevent from being refreshed.
I used:
onsubmit=";return false"
in form tag but it did not submit the form.
Also tried:
type="button"
in save button but it did not submit.
my Form:
<form class="form-horizontal" method="POST" action="{{ url('panel/admin/webscraper') }}" enctype="multipart/form-data">
<input type="hidden" id="csrf_token" name="_token" value="{{ csrf_token() }}">
<input type="text" name="subcategory" value="{{$subcategory}}">
<button type="submit">Save</button>
</form>