title: Problem in removing special characters from a string through js
body: <p>I am using this function to remove anything other than numbers, but it is giving me error, value.replace in not a function, Here's the function :</p>
  
  <pre><code>function filter_value(value)
  {
      var filter = value.replace(/[^0-9.]+/g,''); 
      return filter;
  }
  </code></pre>