Menu

Snippets

Yet another programmer blogging about code

Posts Tagged ‘html5’

WooCommerce quantity fields without spinners

Tuesday, November 12th, 2013

WooCommerce uses HTML5 number fields for shop quantities, because they restrict the characters you can enter, and Safari on iPad/iPhone conveniently shows the number keyboard. Webkit and Opera/Presto add spinners (up/down arrows) to HTML5 number fields. WooCommerce also adds +/- buttons surrounding qty fields, because IE and Firefox don’t add spinners. WooCommerce then uses CSS to hide the spinners on Webkit: (more…)