title: Replace & lowercase in Jquery
body: <p>I have textbox which on typing the text need to get copy into other textbox and also the spacing between the words need to replace with dash and it should get converted into lower Case.</p>
  
  <p>I have below code but its not working</p>
  
  <pre><code>$(document).ready(function() {
  $('#Name').keyup(function(e) {
      var txtVal = $(this).val();
      txtVal = txtVal.toLowerCase();
      $('#URL').val(txtVal);
  });
  </code></pre>
  
  <p>});</p>
  
  <p>Need HELP, what can be done??</p>