How can I remove a particular element from a string in javascript or check if it's there
<p>I have a quick question</p>

<p>I have string <code>var str="0-12345";</code></p>

<p>How can I actually remove the dash from the string if there is one in Javascript .. How can I check if a string has a dash , and if it has , remove the dash from it ?</p>
