jeudi 19 juin 2014

Min attribute doesn't work in Twitter Bootstrap Inputs


Vote count:

0




I use Twitter Bootstrap and min attribute doesn't seem to work in form.



<input id="mylabel" class='form-control' name='mylabel' type="int" min="250" value="{{mydata}}"/>


And here is the JS scripts:



<script src="/static/js/jquery.js"></script>
<script src="/static/js/bootstrap.min.js"></script>


{{mydata}} is passing through Python Bottle from backend and the initial value is 250. But if I change later the input value through the interface to something less that 250, I can still submit the form. It should turn to red if the value was <250 I have checked it in Chrome.



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire