Why can't I get jQuery's live() or load() to work?

Posted by dtryan on Stack Overflow See other posts from Stack Overflow or by dtryan
Published on 2010-04-21T23:43:25Z Indexed on 2010/04/21 23:53 UTC
Read the original article Hit count: 141

Filed under:
|
|
|
|

Why does only the third method work?

$('#jqtest').live('load', function() {$(this).html('hi');}); //1

$('#jqtest').load(function() {$(this).html('hi');}); //2

$(window).load(function() {$('#jqtest').html('hi');}); //3


 <div id="jqtest">kldjfglkj</div>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX