Can I combine the bind event for two selectors in jQuery?
<p>I have the following:</p>

<pre><code>   $('#loginLink')
        .bind('click', accessLinkClick);
    $('#registerLink')
        .bind('click', accessLinkClick);


function accessLinkClick(e) {
    e.preventDefault();
    $('#registerLink').unbind('click', accessLinkClick);
    $('#loginLink').unbind('click', accessLinkClick);
    dialog(this);
}
</code></pre>

<p>Is it possible for me to somehow combine the selectors for loginLink and register link so I don't need to specify them twice. I saw how to do this with functions but not events. </p>
