title: Hide zero values of an empty input(number type)
body: <p>I have a form that gives me data from database, i have number input type. By default it is "0" showed for empty entries. I want to hide  "0"  from the field and show the value just if is different of 0.</p>
  
  <p>I tried with the code below but it doesn't work.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;input data-validate="number"  value="&lt;?php echo $value; ?&gt;" class="form-control" onload="if(this.value  == '0') { this.value = ' '; } " &gt;</code></pre>
  </div>
  </div>
  </p>