Why does my JavaScript no longer clear the value of an input box when I comment out an alert on the previous line?
<p>I wrote a js and it look like</p>

<pre><code>$('#searchform').keydown( function( event ) {
    if ( event.which == '13' ) {
        submitForm();
        return;
    }else if ( event.which == '27' ){
        alert("ESC keydown TO DO - Clear the contents from search box ");
        $('#id_search').val('');
    }
});
</code></pre>

<p>This will remove contents of that input box, <strong>but when i comment alert message</strong>, it will not. Could you please explain me why??</p>
