Created
February 6, 2012 01:02
-
-
Save carolineschnapp/1748732 to your computer and use it in GitHub Desktop.
Image Update in Couture
This file contains 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
<script> | |
jQuery('#product-select').change(function() { | |
var variantTitle = jQuery(this).find(':selected').text(); | |
jQuery('.thumbs img[alt=' + variantTitle + ']').trigger('click'); | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment