title: jquery replace not working
body: <p>I have 2 textboxes one called 'title' one called 'url'. Using jquery on <code>.blur()</code> I'm copying the value of the 'title' into the 'url' value and I'm replacing blank spaces with underscores, but for some reason it only replaces the first blank space and not all of them: Here's the code:</p>
  
  <pre><code>$("#title").blur(function(){
        var myval = $(this).val().replace(" ", "_");
        $("#url").val(myval);
   });
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks in advance</p>