In the below code the text box is restricting zero at starting position. But I want to allow only one zero at first position but not more than one. here is the example

Eg:- 0.1012400==> correct

000.4545000==>not correct

0154==> correct

00154 ==> not correct

```js
$('input#abc').keypress(function(e){ 
 if (this.selectionStart == 0 && (e.which == 48 || e.which == 46 )){
      return false;
   }
});
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="text" id="abc">
```