As user types populate different textbox
<p>I have this code to populate two textboxes:</p>

<pre><code>$(document).ready(function(){
    $('.tb1').keyup(function(){
        var content = $('.tb1').val();
        $('.tb2').val(content);
    });
});
</code></pre>

<p>However, the only other thing I'd like to do is if the user enters a <code>space</code> I'd like to populate that with a <code>-</code>. </p>

<p>How can I accomplish this?</p>
