title: Jquery validate input number float without plugin
body: <p>Max number 999999.9. 
  User can input: </p>
  
  <ul>
  <li><ol>
  <li>-> 1</li>
  </ol></li>
  <li>.5 -> 0.5</li>
  <li>5.568 -> 5.6</li>
  <li>as -> alert</li>
  <li>empty -> will be ok</li>
  <li>spacebar -> empty, will be ok</li>
  </ul>
  
  
       
  
  <pre><code>$('.sq input').unbind().blur( function() {
      var id = $(this).attr('id');
      var v = $(this).val();
      var regex = /^[0-9]?\d{0,5}[\.,]?\d{0,1}$/g;
      switch(id)
      {
          case 'id_sq_pl':
              if ( regex.test(v) || v == '' ) {
                  $(this).val(v);
              } else {
                  alert('Number need');
              }
              // console.log(v);
          break;
          // other case id
      }
  
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/PXY4u/6/" rel="nofollow">http://jsfiddle.net/PXY4u/6/</a></p>
  
  <p>It's good: <a href="http://jsfiddle.net/PXY4u/7/" rel="nofollow">http://jsfiddle.net/PXY4u/7/</a> but here input not type="number"
  if i add to input type="number" it<code>s don</code>t working</p>