title: jquery: Replace onclick event
body: <p>I have the following code:</p>
  
  <pre><code>  $('#tableA').find("#expand_" + row_id).prop("onclick", null);
    $('#tableA').find("#expand_" + row_id).prop("onclick", 'expandAndShow('+row_id+')');
    $('#tableA').find("#expand_" + row_id).removeClass('icon-plus-sign');
    $('#tableA').find("#expand_" + row_id).addClass('icon-ok-sign');
  </code></pre>
  
  <p>I wanted to replace previously linked <code>onlick</code> method with new one. It is not working. However, <code>removeClass</code> and <code>addClass</code> is working well. Am I missing anything? </p>