jQuery - Set all cookies ending with
<p>I'm wondering if it's possible to use a wildcard to select multiple cookies. I'm using jQuery to save various scroll position and would like to clear them out in one go. At the moment I clear them out individually as below</p>

<pre><code>    function clearScroll(elementID) {
    if ($.cookie) {
        $.cookie(elementID + '_scrollpos', 0);
    }
}
</code></pre>

<p>What I'd like is a clear all something like below.</p>

<pre><code>function clearAllScroll() {
    if ($.cookie) {
        $cookie([name$='_scrollpos'],0);
    }  
}
</code></pre>

<p>Is this possible?</p>
