I have
myDiv.bind(\'keypress\', \'> *\', function(event) { console.log(\'keypress\') });
but it does not seem to work.
myDiv is
Keypress event will bubble up to the container element, so you don't necessarily need bind to the children. Instead bind only to the container, than you can check which element was edited by accessing to the event.target property.
$('#container').on('keypress', function (event) { alert(event.target) });