Event handler on multiple events
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1646187/bind-multiple-events-to-jquery-live-method">Bind multiple events to jQuery &#39;live&#39; method</a>  </p>
</blockquote>



<p>I have the following function:</p>

<pre><code>$("td.delivered").click(function() {

        $(this).html($("&lt;input/&gt;", {
          id: 'inp',
          style: 'width:80px;',
          placeholder: "YYYY-MM-DD",
          change: function() {
            selectdone(this, title_id, status_type);
          },
          blur: function() {
            selectdone(this, title_id, status_type);
          },
          onkeypress=="Return": function() { // pseudo-code
            selectdone(this, title_id, status_type);
          }
        })
        );
}
</code></pre>

<p>The following works, what would be  a better way to write it?</p>

<pre><code>          change: function() {
            selectdone(this, title_id, status_type);
          },
          blur: function() {
            selectdone(this, title_id, status_type);
          },
          onkeypress: function(e) {
            if (e.keyCode == 13) {
            selectdone(this, title_id, status_type);
            }
          }
</code></pre>

<p>How would I write this more concisely, making the <code>selectdone</code> function fire on <code>change</code>, <code>blur</code>, and <code>return</code>?</p>
