How to clear the textbox value after 5 sec using JQuery?
<p>I have tried this :</p>

<pre><code>  &lt;script type="text/javascript"&gt;
        $(function() {
            $("#button").click( function()
            {
                alert('button clicked'); // this is calling
                setTimeout(function(){
                    alert('setTimeout');  // this is not calling
                    document.getElementById('clearTxt').value = "";
                }, 9000);
            }
        );
        });
    &lt;/script&gt;
</code></pre>

<p>my HTML code:</p>

<pre><code>    &lt;form&gt;
            &lt;input type="text" id="clearTxt"/&gt;                                              
            &lt;input type="submit"  value="Search" id="button"  /&gt;
    &lt;/form&gt;
</code></pre>

<p>But this code is not working.Please help me to solve this issue.</p>
