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
Post a Comment