how to get the attribute value as text in jquery
<p>I am trying to make a jquery slideUp/slideDown when you click on a Menu item in the menu. I thought that I could do this by doing a conditional based on the value of the display attribute, but for some reason its not working. I must not be getting the attribute value correctly, what am I doing wrong?</p>

<pre><code>$(document).ready(function() {
$("#left-help-menu li").click(function() {
    if($(this).children().attr('display') == 'none')
    {   
        $(this).children().css('display', 'block');
    }
    else if($(this).children().attr('display') == 'block')
    {
        $(this).children().css('display', 'none');
    }
});
})
</code></pre>
