谁能告诉我如何在 div 标签中捕获关键事件?
我写了这段代码,但它不起作用?
<div id="SDiv" style="background-color: White; " onkeypress="kypress()">
<asp:Label ID="LblSaveAndMoveNext" runat="server" Visible="False" Text="Save"></asp:Label>
</div>
<script type="text/javascript">
function kypress() { EnableButtons(true);}
</script>