onkeyup instead of on submit
<p>I'm using JTube found over here: <a href="https://github.com/monkeecreate/jTube/blob/master/examples/other/search/index.html" rel="nofollow">JTube at github</a></p>

<p>I'm trying to make a request on keyup instead of on submit. This is the script:</p>

<pre><code> var qsParm = new Array();
    function qs() {
        var query = window.location.search.substring(1);
        var parms = query.split('&amp;');
        for (var i=0; i&lt;parms.length; i++) {
            var pos = parms[i].indexOf('=');
            if (pos &gt; 0) {
                var key = parms[i].substring(0,pos);
                var val = parms[i].substring(pos+1);
                qsParm[key] = val;
            }
        }
    }

    $(function() {
        qs();

        if(qsParm['search'] == '' || qsParm['search'] == null || qsParm['search'] == undefined)
            qsParm['search'] = 'splinter cell';
        else
            qsParm['search'] = unescape(qsParm['search']);

        $('input[name=search]').val(qsParm['search']);

        $.jTube({
            request: 'search',
            requestValue: qsParm['search'],
            limit: 10,
            page: 1,
            success: function(videos) {
                $(videos).each(function() {
                    $('#example').append('&lt;li&gt;&lt;a href="'+this.link+'"&gt;&lt;img src="'+this.thumbnail+'"&gt;&lt;br&gt;'+this.title+'&lt;/a&gt; - '+this.length+'&lt;/li&gt;');
                });
            },
            error: function(error) {
                $('#example').html(error);
            }
        });
    });
</code></pre>

<p>As far as I understand the function is ''qs'' So therefore I tried:</p>

<pre><code>$("input").onkeyup(function(){
     qs();
     return false;         
 });
</code></pre>

<p>Did not work. I tried many other things with no success. Help is appreciated.</p>
