this is a general-purpose way to make GET requests with Jquery:
var loadUrl=\"mypage.php\";
$(\"#get\").click(function(){
$(\"#result\").html(ajax_loa
Yes that is possible but you can also do it this way.
$.get(
"mypage.php",
{ version: "5", language: "php" }, // put your parameters here
function(responseText){
console.log(responseText);
},
'html'
);
$.get(
url: url, //your url eg. mypage.php
data: data, // Parameter you want to pass eg. {version:"5" , language : "php"}
success: callback // function after success
);
follow the below link
http://api.jquery.com/jQuery.getJSON/