โดย jamepiyawat » 19/09/2019 10:39 am
พอดีว่าผมได้ทำช่องที่จะใส่ตัวเลขลงไปแล้วอย่ากให้มีปุ่มที่จะให้ผู้ใช้สามารถคลิกแล้วเปลี่ยนตัวเลขได้เลยแต่ผมลองทำปุ่มที่ว่าออกมาแล้วแต่ว่ากดไม่ได้เป็นเพราะอะไรเหรอ ครับ
- Selection_999(874).png (11.48 KiB) Viewed 1916 times
โค้ด
โค้ด: เลือกทั้งหมด
<span class="quantity-text">Quantity</span>
<span class="quantity-box">
<input type="text" class="quantity-input js-recalculate" name="quantity[]" data-errstr="You can buy this product only in multiples of %s pieces!" value="1" init="1" step="1">
</span>
<span class="quantity-controls js-recalculate">
<button type="button" class="quantity-controls quantity-plus"><i class="fa fa-angle-up"></i></button>
<button type="button" class="quantity-controls quantity-minus"><i class="fa fa-angle-down"></i></button>
</span>
พอดีว่าผมได้ทำช่องที่จะใส่ตัวเลขลงไปแล้วอย่ากให้มีปุ่มที่จะให้ผู้ใช้สามารถคลิกแล้วเปลี่ยนตัวเลขได้เลยแต่ผมลองทำปุ่มที่ว่าออกมาแล้วแต่ว่ากดไม่ได้เป็นเพราะอะไรเหรอ ครับ
[attachment=0]Selection_999(874).png[/attachment]
โค้ด
[code]<span class="quantity-text">Quantity</span>
<span class="quantity-box">
<input type="text" class="quantity-input js-recalculate" name="quantity[]" data-errstr="You can buy this product only in multiples of %s pieces!" value="1" init="1" step="1">
</span>
<span class="quantity-controls js-recalculate">
<button type="button" class="quantity-controls quantity-plus"><i class="fa fa-angle-up"></i></button>
<button type="button" class="quantity-controls quantity-minus"><i class="fa fa-angle-down"></i></button>
</span>[/code]