title: Can setTimeout be set on a onchange event?
body: <p>I want to delay execution of some code after a few seconds. </p>
  
  <p>I guess setTimeout  is the function to be used. Below is the code i have. I just want the timeout_trigger's alert to fire after 2 sec of a change event. The change event alert fires but not the timeout_trigger's</p>
  
  <pre><code>function timeout_trigger() {
              alert('time out trigger called');
              alert($(this).attr('id') + ' on change ' + $(this).val());  
          }
  
  
   $('input[id$="accountLookup"]').change(function() {
              alert('click function called');
              setTimeout('timeout_trigger()', 2000);
  
          }); 
  </code></pre>
  
  <p>What is that i am doing wrong?</p>