title: removing special characters from the text using jquery
body: <p>i have a condition where i have to replace the empty space with '-' and all other symbols like " *,%,',@,$ ....etc" should be removed , so for instance if i have a word real life , it should be written as real-life , another example , if i have a words fire officer's association it should be written as fire-officers-association . </p>
  
  <p>I can replace empty space using jquery like :</p>
  
  <pre><code>var product= $("#product").val().replace(/ /g,'-');
  </code></pre>
  
  <p>but i m struggling to remove the special characters</p>
  
  <p>Can any provide any suggestion or advice on how to acheive that 
  Thanks</p>