How to fire the same function when user presses enter or makes a click
<p>I have my own edit in place function for jquery which looks like this</p>

<pre><code>    $('.editRow').live('click', function() {
 var row = $(this).parent('td').parent('tr');
 row.find('.1u').slideUp('fast');
 row.find('.1p').slideUp('fast');
 row.find('.inputTxt').slideDown('fast');
 $(this).parent('td').empty().append('&lt;a href=# class=cancel&gt;Cancel&lt;/a&gt; / &lt;a href=# class=save&gt;Save&lt;/a&gt;');
});

$('.cancel').live('click', function () {
 var row = $(this).parent('td').parent('tr');
 row.find('.1u').slideDown('fast');
 row.find('.1p').slideDown('fast');
 row.find('.inputTxt').slideUp('fast');
 $(this).parent('td').empty().append('&lt;a href=# class=editRow&gt;Edit&lt;/a&gt;');
});

$('.save').live('click', function () {
 var thisParam = $(this);
 var row = $(this).parent('td').parent('tr');
 var id = row.attr('id');
 var userid = row.find('#1ui').val();
 var pass = row.find('#1pi').val();

 $.ajax({
 type: 'post',
 url: 'filefetch_update.php',
 data: 'action=updateUser&amp;pass=' + pass + '&amp;id=' + id + '&amp;userid=' + userid,

 success: function(response) {
  $('#response').fadeOut('500').empty().fadeIn('500').append(response);
  var row = thisParam.parent('td').parent('tr');
  row.find('.1u').text(userid).slideDown('fast');
  row.find('.1p').text(pass).slideDown('fast');
  row.find('.inputTxt').slideUp('fast');
  thisParam.parent('td').empty().append('&lt;a href=# class=editRow&gt;Edit&lt;/a&gt;');
 }
 });
});
</code></pre>

<p>Now i want to run the <strong>save</strong> function when the user clicks Save and also when enter is pressed on keyboard.</p>
