Accept any valid number, positive or negative

This commit is contained in:
flynsarmy 2015-02-22 13:45:40 +10:00
parent 027af0dd9f
commit 74cd856f8a
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
class="form-control"
autocomplete="off"
maxlength="255"
pattern="\d+"
pattern="-?\d+(\.\d+)?"
<?= $field->getAttributes() ?>
/>
<?php endif ?>