views:

1004

answers:

1

I'm looking for some help with the following code, in which I'm trying to dynamically load some PHP content into a DIV:

<script type="text/javascript">
$(document).ready(function() {
  $("#test").click(function(event){
event.preventDefault();
   $('#folders').load('loadfolders.php');
         });
   });
</script>

This code works fine in FF and Safari, but will not work in IE7.

More specifically, it does not load anything into the DIV, it remains blank.

Interestingly, if I replace it with:

$('#folders').load('test.html');

It works fine.

Any ideas?

A: 

Nevermind, figured this one out. User error.

:-(

Apparently, I had one too many

</div>

tags.