title: asp.net textbox - client side textChanged event won't fire
body: <p>i want my textbox to fire a textChanged client side (JS) event when a text is changed inside it.</p>
  
  <p>i read many posts about it. most of them are talking about a code-behind event and the ones that talk about the client side tells to add attribute of onchange:</p>
  
  <pre><code>&lt;asp:TextBox runat="server" ID="TextBox1" onchange="javascript: ontextchanged();"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>but this event only fires when i lose the focus on the textbox.</p>
  
  <p>what is the solution to this ? 
  how can i fire a JS function each time a text is changed inside the textbox?</p>