This demo is working on firefox. But, in webkit browsers (Chrome, Safari) it is not working. Any ideas?
I really can't figure it out. The nth-child css is working as well. Here is the code here
jQuery("#featured_1 .product-options .product-option:nth-child(2) .product-option-value option:nth-child(1)").click(function(){
jQuery("body").css("background-color", "red");
});
jQuery("#featured_1 .product-options .product-option:nth-child(2) .product-option-value option:nth-child(2)").click(function(){
jQuery("body").css("background-color", "green");
});