Simple: replace div with ajax content (jquery)
- by user469110
I followed this thread. I now have:
<a href="#" onclick="$('#gc').load('test');">reload</a>... </span>
<div id="gc">
empty
</div>
This is what I am getting:
Uncaught exception: TypeError: Cannot convert '$('#gc')' to object
Error thrown at line 1, column 0 in <anonymous function>(event):
$('#gc').load('test');
What is that? I thought I would be able to select a div and replace the contents with load()?