Simple: replace div with ajax content (jquery)
Posted
by
user469110
on Stack Overflow
See other posts from Stack Overflow
or by user469110
Published on 2011-01-03T13:50:59Z
Indexed on
2011/01/03
13:53 UTC
Read the original article
Hit count: 107
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()?
© Stack Overflow or respective owner