Can I use two events in a single line?
<p>I want an action to take place on keyup as well as on change.</p>

<p>The statement below works perfectly for the keyup event.  I want to duplicate it on change.</p>

<p>Is there an easy way to accomplish this?</p>

<pre><code>$("#YourName").keyup(function() {
    ThisValue = $(this).attr("value");
    if (ThisValue.length &gt; 0) {
        ThisValue = "&lt;b&gt;From:&lt;/b&gt;&lt;br /&gt; " + ThisValue;
        $("#YourNameValid").html(ThumbsUp);
    } else {
        ThisValue = "";
        $("#YourNameValid").html("");
    }
    $("#YourNameText").html(ThisValue);
});
</code></pre>
