I have this code to populate two textboxes:
$(document).ready(function(){
$('.tb1').keyup(function(){
var content = $('.tb1').val();
$('.tb2').val(content);
});
});
However, the only other thing I’d like to do is if the user enters a space I’d like to populate that with a -.
How can I accomplish this?
You could try the
replacemethod: