私のコードはいくつかの div をループしており、スタイル属性に特定のテキストを含むものを見つけようとしています。これは私の最善の試みですが、見つかりません。
$("#RootDiv > div").each(function (index)
{
if ($(this).is("[style~='bg-stripes.gif']"))
alert("found");
});
HTML
<div id="RootDiv">
<div style="background-color: White;"></div>
<div style="background-image: url(bg-stripes.gif);"></div>
<div style="background-color: White;"></div></div>