I have a hidden input field that will take the value of another on keyup and I\'m trying to figure out how transform the value in the hidden field to lowercase and replace s
To convert to lowercase :
var lowercase = 'This Is A Sample'.toLowerCase();
To Replace empty space:
var Replace= 'This Is A Sample'.replace(/ /g,"-");
take a look at this example
@JSbin