Jquery load into div on toggle

Posted by russp on Stack Overflow See other posts from Stack Overflow or by russp
Published on 2010-06-01T10:51:04Z Indexed on 2010/06/01 10:53 UTC
Read the original article Hit count: 237

Filed under:
|

Not sure if this is possible but can you load and unload into a div on a jquery toggle?

something a bit like this?

$("#IDOFCLICK").live('click',function(){
$(this).toggleClass("active").('#IDOFDIVTOLOAD').load('PAAGETOLOAD').slideToggle("slow");
});

if you can I guess the above is not right, but, how would you also unload on the "reverse" toggle?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about toggle