Last active
February 9, 2016 20:09
-
-
Save DawnPaladin/14e41444c9aaf303cfa8 to your computer and use it in GitHub Desktop.
Convert an array of product numbers to an array of jQuery objects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $ATCButtons = jQuery(itemNumbers.map(function(number) { | |
return '.addToCartBtn[widgetid="addToCart' + number + '"]'; | |
}).join(',')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment