Delegat kliknij w jQuery

.delegate() has been deprecated

Instead use : 
$( "table" ).on( "click", "td", function() {
  $( this ).toggleClass( "chosen" );
});
Virali Thaker