I have
myDiv.bind(\'keypress\', \'> *\', function(event) { console.log(\'keypress\') });
but it does not seem to work.
myDiv is
The issue may not be the selector, but rather that the is always the event.target. $('#test').on('keypress', function (e) { console.log(e.target); }); With this, at least in Chrome, the console just logs: ... ... ... ... ... ... ... 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
is always the event.target. $('#test').on('keypress', function (e) { console.log(e.target); }); With this, at least in Chrome, the console just logs: ... ... ... ... ... ... ... 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
$('#test').on('keypress', function (e) { console.log(e.target); });
With this, at least in Chrome, the console just logs:
... ... ... ... ... ... ...