Jquery textinput change function is not working
<p>I just get the parameters from PHP  GET method and use them using jQuery. There is no output when run the page.</p>

<pre><code>&lt;?php
    if (isset($_GET['url'])){
        $url = $_GET['url'];
        $url = explode(" " , $url);
        echo end($url);
        exit;
    }
?&gt;
&lt;html&gt;
&lt;head&gt;
&lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    $('input[type=text]').change(function (){
        if ($(this).val() !== ''){
            var url = $(this).val():
            $.post('grab.php?url='+url+'', function (data){
                window.open(data, 'Download', 'width=10,height=10');
                $(this).html('');
            });
        }
    });
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;input type="text" style="width:100%;height:20px;"/&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I'm new to designs and hope mistake is there.</p>
