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).
Is there a way to just append another event handler to the already defined click event?
This is the current click event definition:
$(.HwYesButton, #HwQuizQuestions)
.append(<a href='javascript:void(0);' rel='.HwYesButton'>Yes</a>)
.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;
});