8yt3c0d3
8yt3c0d3

Reputation: 549

Using jQuery Ajax in Laravel

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

Answers (1)

Pupiu
Pupiu

Reputation: 11

$('#btn').click(function() {
    $('#content').load(AJAX_URL);
})

Upvotes: 1

Related Questions