Replace & lowercase in Jquery

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.

I have below code but its not working

$(document).ready(function() {
$('#Name').keyup(function(e) {
    var txtVal = $(this).val();
    txtVal = txtVal.toLowerCase();
    $('#URL').val(txtVal);
});

});

Need HELP, what can be done??

Answers 1

Related Articles