jQuery find value then replace SRC
- by Charles Web Dev
Hello all,
Can anyone see anything that is wrong with this code it just isn't working...
I am tring to:
get the value of #product-variants-option-0
search #preload for the relevant image and
then change div.image img src to that image
jQuery(document).ready(function($) {
$('#product-variants-option-0').change(function() {
// What…