title: How to add context menu to datatables 1.10?
body: <p>I'm using <code>DataTables</code> (datatables.net) and I would like to add a context menu to my table.</p>
  
  <p>I found <a href="http://medialize.github.io/jQuery-contextMenu/index.html" rel="nofollow">jQuery contextMenu</a> and also description in the <code>DataTables</code> forum on how somebody implemented the context menu.
  But it seems that at least the <code>DataTables</code> I'm currently using (1.10) has evolved quite much.
  I have not information about the <code>Context Menu</code> plugin. (meaning what version was using in this forum post and what I have downloaded).</p>
  
  <p>If I use it as described in the forum post and adapt it to 1.10 (to my humble knowledge) I'm comming to this</p>
  
  <pre class="lang-js prettyprint-override"><code>var myTable = $("#myTable ").DataTable( {
      "drawCallback": function( settings ) {
          $("#myTable tbody tr").contextMenu(
          {
              menu: 'myMenu'},
              function( action, el, pos ) {
                  var aData = myTable.GetData( el.context );
              }
          );
      }
  } );
  </code></pre>
  
  <p><strong>But executing this code will give me this error:</strong></p>
  
  <blockquote>
    <p>Uncaught Error: No selector specified  in jquery.contextMenu.js:1273</p>
  </blockquote>
  
  <p>Has anybody recently implementet context menu to <code>DataTable</code> 1.10?</p>