How do i use live() show() hide() functions all together?
<p>I want to hide and show(toggle like) some information.Since the info is obtained dynamically then i am forced  to use live().But once i click on the element(to hide or show) that particular element disappears,what ami doing wrong.This is where i got so far
                 hook.txt
<pre>
george lucas &nbsp;
knows&nbsp; physiology </p>



<p>//javascript
$('#stdmatch').load("/details.txt");
            $('.subjectnames').live('click',function(){
                if ($(".detail").is(':visible')) {
                    $(this).hide('slow', function(){
                        $('.detail').load("/info.txt")
                    });
                }else {$(this).show('slow', function(){
                        $('.detail').load("/info.txt")
                    });
                }</p>

<code>        });
</code></pre>
