By default, the element is tbodynot configurable, you need to set any tabindex attribute to tbody, for example:
tabindex="-1"
See full DEMO using also CSS scheme:
#tableid :focus {outline:none;}
So you can use the keyboard handler for tbody:
$('#' + tableid).on('keyup', 'tbody', function(e) {...});
source
share