Why toggle() method is not working properly in my program?
<p>Using the code below I am displaying pop up windows. I used the <code>toggle()</code> animation method. But it is only showing the pop up window once. What is the reason? How can I solve this problem?</p>

<p>Code: </p>

<pre><code>$(document).ready(function()
 {
      $(".ishow").click(function()
      {
           var info=$(this).attr("id");
           var id=info.replace("/","");

           var cor=$(".rd"+id).offset();
           var x=cor.left;
           var y=cor.top;

           $.ajax
           ({
                type:"post",
                url:"roomstaypopup.php",
                data:"id="+info,
                success: function(html)
                {                          
                     $("#popup"+id).css({"display":"block","left":x-51,"top":y+18});
                     $("#popup"+id).toggle();
                     $("#popup"+id).html(html);
                }
           });

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