Reputation: 549
I am trying to learn how to use ajax within Laravel. I have a button (#btn1) and on clicking that button i want to load some response from the server to an empty div (#content).
Upvotes: 0
Views: 97
Reputation: 11
$('#btn').click(function() { $('#content').load(AJAX_URL); })
Upvotes: 1