I would like to make a custom min-max input in CSS3.
<input type="number" min="10" class="form-control" value="10">
Any help would be great.
Thank you.
I would like to make a custom min-max input in CSS3.
<input type="number" min="10" class="form-control" value="10">
Any help would be great.
Thank you.
I am not sure at all what you are looking for.
If you are looking for the possibility of creating your own arrows to count up or down your input field, here you have alternative solution:
HTML:
<input class="number" type="number" min="10" class="form-control" value="10">
<button class="number_up"/>+</button>
<button class="number_down">-</button>
JS/jQuery
$(".number_up").click(function() {
$(".number").val(parseInt($(".number").val()) + 1);
});
$(".number_down").click(function() {
$(".number").val(parseInt($(".number").val()) - 1);
});
A demo for you is findable here: http://codepen.io/derbronko/pen/YNNRoL
Attention! This code is currently not taking not about the min/max/step-parameters!
It´s done with jQuery, a function-library for JavaScript. Just to do it with CSS is not possible in my opinion. If you need a more detailed explanation, let me know. ;-)