Should be pretty simple. Just give your form an id
Copy
<form id="the-form" method="POST" action="{{ route('sms.store') }}">
Give the submit button an id
Copy
<button id="the-submit" type="submit" class="btn btn-primary">Save changes</button>
Then use jquery (since you're using bootstrap) to submit the form when the submit button is clicked.
Copy
$(function() {
$('#the-submit').on('click', function(e) {
$('#the-form').submit();
});
});
沒有留言:
張貼留言