Issue
I am using HTML5 input type=number
. Its working perfectly in Chrome browser, but its not working in Firefox and IE9.
I want to increment the quantity by one
i.e. step=1
and also I have set min=1
.
I am using the following code:
<form action="" class="cart" method="post" enctype='multipart/form-data'>
<div class="quantity">
<input type="number" step="1" min="1" name="quantity" value="1" title="Qty" class="input-text qty text" />
</div>
<button type="submit" class="single_add_to_cart_button button alt">Add to cart</button>
</form>
Is there any patch or hack to make it work in Firefox and IE9. Or else, what could be the possible solution for that.
Solution
Note: The min attribute of the tag is not supported in Internet Explorer 9 and earlier versions, or in Firefox.
Note: The min attribute will not work for dates and time in Internet Explorer 10, since IE 10 does not support these input types.
Source: http://www.w3schools.com/tags/att_input_min.asp
Answered By - JerryHuang.me
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.