在asp.net的dropdownlist上按下回车键的javascript [英] javascript for enter key pressed on dropdownlist in asp.net
本文介绍了在asp.net的dropdownlist上按下回车键的javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
提前致谢!
我想知道如何跟踪用户何时在运行时按Enter键下拉列表。
Thanks in Advance !
I want to know that how to track when user press the Enter on dropdownlist at runtime.
推荐答案
嘿那里,
查看这个小例子:
DropDownList:
Hey there,
Check this tiny example:
DropDownList:
<asp:DropDownList runat="server" ID="DDL" onkeyup="MyKeyUpEvent();">
<asp:listitem Value="0" Text="Select"></asp:listitem>
</asp:DropDownList>
JavaScript:
JavaScript:
function MyKeyUpEvent() {
alert("Key UP Fired");
}
希望有所帮助
祝你好运< br $> b $ b
Azee ...
更正格式问题。
[/编辑]
访问这里..
http://codebetter.com/darrellnorton/2004 / 03/03 / submitting-default-buttons-when-the-user-press-the-enter-key-finally / [ ^ ]
visit here..
http://codebetter.com/darrellnorton/2004/03/03/submitting-default-buttons-when-the-user-presses-the-enter-key-finally/[^]
这篇关于在asp.net的dropdownlist上按下回车键的javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文