simple php ajax request url
ajax, jquery
Solution
Try this :
$.ajax({
type: "GET",
url: "action.php",
data: {
me: me
},
success: function (data) {
alert(data);
}
});
Problem
I have many links like this... different link id me for different items ``` <a class="member" href="http//ex.com/action.php?me=1">link1</a> ``` so when I click this I want to navigate to `action.php` from here (`here.php`) I am using ajax to do this. I'm new to jQuery.. I am not able to understand the usage the `url` parameter.. I tried many posts found here... wanted to the basic way to send the --me-- value from `here.php` to `action.php`.. ``` $("a.member").click(function(e) { $.ajax({ type: "GET", url: "action.php?", data: "me=" + me, success: function (data) { alert(data); } }); return false; e.preventDefault(); }); ```