title: Disable and enable jQuery context menu
body: <p>I use </p>
  
  <pre><code>$('#test').unbind('click');
  </code></pre>
  
  <p>to remove the click event on the #test item. How do I make the item clickable again? </p>
  
  <p>Actually I have a table. On click event a context menu appears. But if there are no entries the menu has to be disabled. So I use unbind above. Since the context menu is generated by a plugin I do not know how to make it clickable again.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>Update:</strong> this is how the context menu is set up</p>
  
  <pre><code> $('#contacts tbody tr').contextMenu('myMenu1', {
      bindings: {
        'sms': function(t) {},
        'delete': function(t) {}
      } 
   });
  </code></pre>
  
  <p>Since I am still not sure how to solve my problem I will describe it a little more. I use the lightweight <a href="http://www.trendskitchens.co.nz/jquery/contextmenu/" rel="nofollow">context-menu plugin</a> in jQuery to display context menus. </p>
  
  <pre><code>#contacts tbody tr 
  </code></pre>
  
  <p>are the table rows and <code>myMenu1</code> is the context menu that appears on tr click.</p>
  
  <p>On my page I have a table. Each row has its own context menu, well always the same but <code>function(t)</code> referes always to the clicked row.</p>
  
  <p>Well, the table may be empty so I want to disable the context menu. I believe there are may ways to do that. One is to unbind the click event, this does not work for me.</p>
  
  <p>I hope anyone has an idea.</p>