Why is it not displaying

Posted by Doug on Stack Overflow See other posts from Stack Overflow or by Doug
Published on 2010-04-24T17:21:51Z Indexed on 2010/04/24 17:23 UTC
Read the original article Hit count: 132

Filed under:

My fieldset doesn't display onclick, what am I doing wrong?

$(document).ready(function(){
    $('#More').toggle(
        function() {  $('#search', this).slideDown(); }, 
        function() {  $('#search', this).slideUp(); });
});


<div> Item 1 <a href="#" id="More">Item 2</a> Item 3


<fieldset id="search" style="display: none;">
    <form>
        <input type="text">
    </form>
</fieldset>

</div>

© Stack Overflow or respective owner

Related posts about jQuery