3
私は次のコード変更1つの単語
<span style="background-image:url('/product_images/attribute_value_images/78.thumbnail.jpg')" class="thumbnail"> </span>
を持っている私は、プレビューのための単語のサムネイルを変更する必要があり、それはjQueryを使って可能ですか?
これまでのところ、私はこれがあります。
$("li.swatch span.thumbnail").each(function(){
$(this).css("background-image").replace(/thumbnail/ig, "preview")
;
});
(私が警告した場合、私は右の値を取得)()動作しているようだが、ページに変更されていません..私はアップになります任意のアイデアを?事前
:ありがとうございます:D –