jquery toggle to hide or display div
<p>I've written a code which checks if the div is set to <code>display:none;</code> or <code>display: block;</code>, but I think a better short code can also be made. Here is my code, can anyone help me out with a more flexible code?</p>

<pre><code>$(".msgstreplylarge").toggle(
    function () {
        if($('.view_quick_reply').css('display') === 'none')
            $('.view_quick_reply').show();
        else
            $('.view_quick_reply').hide();
    },
    function () {
        if($('.stg_gall_cro_cnt').css('display') === 'block')
            $('.view_quick_reply').hide();
        else
            $('.view_quick_reply').show();
    }
);
</code></pre>
