title: jQuery - Append an event handler to preexisting click event
body: <p>I have a click event that is defined already. I was wondering what the best way would be to append another event handler to this event without touching this code (if possible). </p>
  
  <p>Is there a way to just append another event handler to the already defined click event?</p>
  
  <p>This is the current click event definition:</p>
  
  <pre><code> $(".HwYesButton", "#HwQuizQuestions")
          .append("&lt;a href='javascript:void(0);' rel='.HwYesButton'&gt;Yes&lt;/a&gt;")
          .click(function(event) {
              var button = $(this).parent();
              var questionId = button.attr('id');
              $iadp.decisionPoint["HwQuizYourself"].Input.inputProvided(questionId);
              button.find(".HwNoButton").removeClass("HwButtonSelected");
              $(this).addClass("HwButtonSelected");
              button.removeClass("HwQuestionSkipped");
  
              $iadp.flat.setBoolean(questionId, true);
              return false;
          });
  </code></pre>