combine scrollto and show
<p>We use scrollto.</p>

<p>Code:js</p>

<pre><code>$(document).ready(function() {
    $("a.anchorLink").anchorAnimate()
});

jQuery.fn.anchorAnimate = function(settings) {

    settings = jQuery.extend({
        speed : 1100
    }, settings);   

    return this.each(function(){
        var caller = this
        $(caller).click(function (event) {  
            event.preventDefault()
            var locationHref = window.location.href
            var elementClick = $(caller).attr("href")

            var destination = $(elementClick).offset().top;
            $("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, settings.speed, function() {
                window.location.hash = elementClick
            });
            return false;
        })
    })
}
</code></pre>

<p>code:html</p>

<pre><code>&lt;a href="#myAnchor" rel="" id="anchor1" class="anchorLink"&gt;Add a Comment&lt;/a&gt;
</code></pre>

<p>Scroll to destination:</p>

<pre><code>&lt;a name="myAnchor" id="myAnchor"&gt;Play Nicely&lt;/a&gt;
</code></pre>

<p>We also use show/hide onclick:</p>

<p>code:html</p>

<pre><code>&lt;a class="nag-details" href="javascript:;"&gt;Conditions Apply* &amp;#x25BC;&lt;/a&gt;
</code></pre>

<p>destination:html</p>

<pre><code>&lt;div id="closeable-nag" style="display:none"&gt;
&lt;p&gt;some stuff here&lt;/p&gt;
&lt;/div&gt;
</code></pre>

<p>code:js</p>

<pre><code>jQuery(".nag-details").click(function() {
    jQuery("#closeable-nag").slideToggle(function() {
        if (jQuery(this).is(":visible")) {
            jQuery(".nag-details").text("Conditions Apply* \u25b2");
        } else {
            jQuery(".nag-details").text("Conditions Apply* \u25bc");
        }
    });
});
</code></pre>

<p>Ok so here is my question.</p>

<p>Onclick of myanchor link, i want to scroll to and open closeable-nag ( and show the div containg "some stuff here"</p>

<p>Is this dooable ?</p>

<p>I could possibly set up 2 fiddles if need be.</p>

<p>Essentially, these 2 work independantly. So I can click the anchor, and page scrolls to dest. element.
I can also click dest. element and SHOW on slide the hidden content, and close the content.</p>

<p>What I am essentially, looking to do is combine scroll page and OPEN the hidden element ( ie. show )</p>

<p>Any suggestions Please.</p>
