Many thanks to everyone who was involved. Everything I paid attention to, and was able to finally come up with this, served the site very well (it was just css, that was painful!)
HTML:
<div id="qtybox"><label for="qty"> <venda_text id=site.quantity> </label><input name="qty" id="qty" type="text" value="1" size="3" maxlength="2"></input> <button id="qtyplus" onclick="return false"></button> <button id="qtyminus" onclick="return false"></button> </div>
JS:
jQuery(function(){ jQuery("#qtyplus").click(function(){ jQuery(":text[name='qty']").val( Number(jQuery(":text[name='qty']").val()) + 1 ); }); jQuery("#qtyminus").click(function(){ if(jQuery('#qty').val()>1) jQuery(":text[name='qty']").val( Number(jQuery(":text[name='qty']").val()) - 1 ); }); });
CSS
#qtybox button#qtyplus { background: url("../images/social_icons/elements.png") no-repeat scroll -268px -223px transparent; border: medium none; cursor: pointer; display: block; float: right; height: 23px; width: 23px; }
As you can see, I deleted the values ββ+ and - - I hated how it was visualized!
source share