Can I attach multiple click events to an element using jQuery?
<p>I have the following in a plug-in script:</p>

<pre><code>$("#menu")
.on('click','a[href^="/Test"]',function(event){

        event.preventDefault();
        var href = $(this).attr('href');

        alert(this);
        // Load content
        $('#content').load(href, '', function (responseText, textStatus, XMLHttpRequest) {
            $(this).applyTemplateSetup().buildTableOfContent();
        });
        window.location.hash = '#' + href;

        // Get nav link
        var a = $('#menu a[href="' + href + '"]');
        if (a.length &gt; 0) {
            // Mark as current
            $('#menu a').removeClass('current');
            a.addClass('current');

            // Update breadcrumb
            var breadcrumb = $('#breadcrumb').empty();
            while (a.length &gt; 0) {
                if (a.get(0).nodeName.toUpperCase() == 'A') {
                    var target = a;
                }
                else {
                    var target = a.parent().find('a:first');
                }
                breadcrumb.prepend('&lt;li&gt;&lt;a href="' + target.attr('href') + '"&gt;' +
                a.contents().filter(function () {
                    return this.nodeType == 3;
                }).first().text()
                + '&lt;/a&gt;&lt;/li&gt;');

                // Check if opened
                var li = a.parent();
                if (li.hasClass('closed')) {
                    li.removeClass('closed');
                }

                a = li.parent().parent().children('a, span');
            }
        }
    });       
</code></pre>

<p>I would like to also set the value of a link when the user clicks. I added this 
on my page but it seems like it does not get called. Is there a problem when
I attach two of the same type of events to an element?</p>

<pre><code>$("#menu")
            .on('click', 'a[href^="/Test"]', function (event) {
                event.preventDefault();
                var href = $(this).attr('href');
                var pk = href.substr(7, 4);
                var rk = href.substr(12, 4);
                var link = "/Admin/Testss/Edit?pk=" + pk + "&amp;rk=" + rk;
                $('#editLink').data('href', link);
            });
</code></pre>
