lundi 5 octobre 2015

How to onclick empty qty for mobile woocommerce

I am developing eCommerce site with woocommerce, in my shop page i added a number field to enter quantity. now i want to empty field onclick, but as the common thing to grab the node is name, if i put this code:

$('[name=quantity]').on('click', function() {

$('[name=quantity]').val('');   

});

it removes the 1 number from all filed how can i emty the filed thats clicked only keeping others untouched?

here is the url for checking: http://ift.tt/1KVut9G



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire