I have a div that gets loaded with the default information on page load.
<div id="carlistdiv" class="row">
@include('carlist')
</div>
What do I put it my button's jQuery click event to load this div with a different page, 'oldcarlist'?
Thanks!
you can use the $('#carlistdiv').GET or $('#carlistdiv').load
$('#carlistdiv').load("/car/list");
OR
$.ajax({
type : "GET",
url : "/car/list",
data : { any },
cache : false,
success : function(html) {
$("#carlistdiv").html(html).show('slow');
} //end function
});//close ajax
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community