$(‘.tag’).click(function(){
var this_id = $(this).attr(‘id’);
$.ajax({
method: “get”
, url: “ssi/ajax/tag.php” // this sets the $_SESSION variable to either state
, data: “tag=”+this_id
, success: function(text){
$(‘#’+this_id+’ span’).text(text); // this updates the visual for the user
}
});
});
A Resource for Very Little