Simple toggle only works once
<p>I am trying to create a quick search function on the menu of my website using jquery. The code is very simple, when a user clicks the "quick search" link that will be part of menu of every page, an input text field will appear and they can search for whatever they want quickly. My code works for one toggle, but not more. I have been trying to fix this for ever now and it is suppose to be simple so i'm frustrated. I was hoping someone on here can maybe help me figure this one out? </p>

<p>NOTE: My code works more than once, on jsfiddle, but not anywhere else. -_-</p>

<p>Markup</p>

<pre><code>&lt;a href="#"&gt; Register&lt;/a&gt;  |
    &lt;a href="#"&gt;My Account&lt;/a&gt;  |
    &lt;span&gt;
        &lt;span id="quicksearch" style="cursor:pointer; color:blue;"&gt;&lt;a href="#"&gt;Quick Search&lt;/a&gt;&lt;/span&gt;
        &lt;input id="quickbox" type="text" style="float:right; display:none; padding:2px 5px 3px 5px; border:2px solid #ddd; margin-left:-110px; position:absolute; margin-top:20px;"/&gt;
    &lt;/span&gt; 
</code></pre>

<p>JQuery</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function(){
    $("#quicksearch").click(function(){          
        $("#quickbox").toggle();
    });
});
&lt;/script&gt;
</code></pre>
