title: Using On Keyup Function For Live
body: <p>I want to this code to execute after an ajax-call (means .live) How should I change the code?</p>
  
  <pre><code>var el=document.getElementById('txt_url');
  el.onkeyup=function(){
      var str=el.value;
      if(str=='') return;   
      if(str.indexOf('http://')==-1 &amp;&amp; str.length &gt;= 7)
      el.value='http://'+str;   
  }
  </code></pre>