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).
-
try this one $.get(url,function(response){ $("div").html(response); })Frebin Francis– Frebin Francis2015-02-07 07:46:15 +00:00Commented Feb 7, 2015 at 7:46
-
Please add the code you are currently using to do the request. Does the console give you any errors?Damien– Damien2015-02-07 08:00:58 +00:00Commented Feb 7, 2015 at 8:00
Add a comment
|