简单的jQuery Ajax

I'm having some trouble getting the following code to work:

$(document).ready(function(){
$('#generate').click(function(){
    $("#codeigniter_profiler").load('test.php')
})


});

Jquery is loaded in the head of the document, and the script is enclosed in the neccesary opening and closings. The "test.php" file is located in the root of my application, as well, I have tried placing the file in the same directory as the html file that is executing the js code. The file will not load into the div, no matter what I try!