title: How to add separator betwen number?
body: <p>I have a script and I would like to add a separator (space) between numbers, e.g. <code>15000</code> to <code>15 000</code></p>
  <pre><code>$.fn.number = function( number, decimals, dec_point, thousands_sep ){
  
      // Enter the default thousands separator, and the decimal placeholder.
      thousands_sep   = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep;
      dec_point       = (typeof dec_point === 'undefined') ? '.' : dec_point;
      decimals        = (typeof decimals === 'undefined' ) ? 0 : decimals;
  
      // Work out the unicode character for the decimal placeholder.
      var u_dec           = ('\\u'+('0000'+(dec_point.charCodeAt(0).toString(16))).slice(-4)),
          regex_dec_num   = new RegExp('[^'+u_dec+'0-9]','g'),
          regex_dec       = new RegExp(u_dec,'g');
  
      // If we've specified to take the number from the target element,
      // we loop over the collection, and get the number.
      if( number === true )
      {
          // If this element is a number, then we add a keyup
          if( this.is('input:text') )
          {
              // Return the jquery collection.
              return this.on({
  </code></pre>