Html:
<input type="text" placeholder="Enter page title name" id="text" style="width: 500px;" />
<br />
<br />
<input type="button" value="Click Me" id="button" />
USER INPUT :: " Is this Ram's pen ? " (Without double quote)
When user click the button, the input should be..
EXPECTED :: " Is-this-Rams-pen " (Without double quote)
Main aim is to adding Hyphen(-) in between every word and skipping the other special characters.
Is it possible in Javascript ?