Jquery keyup issue with dropdown menus?
<p>I have this code, basically I have <code>&lt;input id="register_username" type="text" name="username"&gt;</code> and I want to check if the users already exist in the database or not. The code works perfectly when the user type a username, but sometimes some browsers (for example Firefox) gives the user drop down menu and let them choose some values they already entered in the past (such as their name). The problem is when the chose the username from the drop down menu, the <code>keyup</code> function does not work. How can I fix this problem ?</p>

<pre><code>$("#register_username").live('keyup', function() {

    $.post('scripts/register/register_check.php', {
        checkusername: $('#register_username').val()
    }, function(data) {
        if (data == "good") {
            //do something
        } else {
            //do the other thing
        }
    });
});​
</code></pre>
