Déléguer Cliquez dans jQuery

.delegate() has been deprecated

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