I’m usually able to find this stuff on my own, but this doesn’t look like a quick fix.
Let’s say I wanna AJAXify my Mediawiki installation by using jQuery:
Code:
$(“a”).click(function(){
$(“#column-content”).load(“THE-URL-CLICKED”);
});
How do I get the url of the anchor into the .load argument? My first instinct is to use a variable, obviously, but I have no idea how to extract the url of the anchor and set it as var URL, or if I can use it as an argument in .load().
I’ve never used the css-tricks community as a resource before, so let’s see what you guys can do. :D