Edward Tanguay Edward Tanguay - 2 years ago 60
Javascript Question

Why does JQuery keydown work for window but not textbox?

Why does this work:


but not this:


I'm testing with Firefox 3.
Interestingly, neither of them work in IE7.

Answer Source

Checked this in Chrome, IE7 and Firefox 3.0.3. Works as it should. jQuery version 1.2.6.

    <script type="text/javascript" src="jquery-1.2.6.js"></script> 
    <script type="text/javascript"> 
    <input type="text" id="ajaxSearchText"></input>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download