Why no form tag? It doesnt make much sense ... If you really want to go that way, JavaScript is your friend. I.e. (not tested at all):
$(function() {
$("button").onClick(function(event){
$.ajax({
type: "POST",
url: '{{$request->url()}}',
data: {'email-select':$("select").val()},
error: function() {alert('Request failed')}
});
event.preventDefault();
});
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community