jquery load html and hide and show -


i calling following code load html div.

        $('#strap').click(function(e) {         e.preventdefault();         $('#collection_content').load('collection_sub.html');      }); 

and call make disappear

$('#collection_content').hide(); 

but when try load same html file again, doesn't show anything.. because hidden? how should make appear again? now, 'collection_sub.html' static, going replaced php dynamic page, want re-load it.. there way it?

thanks.

to make appear again, call .show():

$('#collection_content').show().load('collection_sub.html'); 

if element visible, .show() won't have effect.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -