Jquery - Textbox hides on its focus
<p>I have several divs and I'm showing up a TextBox on click. The TextBox is copied from another div. It's working fine, but when I put the focus on the TextBox, it disappears. What am I doing wrong?</p>

<p><a href="http://jsfiddle.net/PpbWw/" rel="nofollow"><strong>JSFIDDLE</strong></a></p>

<p>HTML</p>

<pre><code> &lt;table&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;div class="panel_call"&gt;
                    Call 1
                    &lt;div class="panel_authenticate_container" style="display: none"&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td&gt;
                &lt;div class="panel_call"&gt;
                    Call 2
                    &lt;div class="panel_authenticate_container" style="display: none"&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;
    &lt;div class="panel_authenticate" style="display: none;"&gt;
        Email:
        &lt;input id="Text1" type="text" /&gt;
    &lt;/div&gt;
</code></pre>

<p>JQUERY</p>

<pre><code> $(".panel_call").click(function(e) {
            if ($(e.target).closest("tr").find(".panel_authenticate_container").is(":visible")) {
                var c = $(e.target).closest("tr").find(".panel_authenticate_container").html();
                $(".panel_authenticate").html(c);
                $(e.target).closest("tr").find(".panel_authenticate_container").html("");
                $(e.target).closest("tr").find(".panel_authenticate_container").hide();
            }
            else {
                if ($(".panel_authenticate_container:visible").length &gt; 0) {
                    var b = $(".panel_authenticate_container:visible").html();
                    $(".panel_authenticate").html(b);
                    $(".panel_authenticate_container:visible").html("");
                    $(".panel_authenticate_container:visible").hide();
                }
                var a = $(".panel_authenticate").html();
                $(e.target).closest("tr").find(".panel_authenticate_container").html(a);
                $(e.target).closest("tr").find(".panel_authenticate_container").show();
                $(".panel_authenticate").html("");
                $(".panel_authenticate").hide();
            }
        });
</code></pre>
