我有一个生成的选择字段,其中包含 2 个这样的选项
<div class="PlentyFormContainer">
<div class="PlentyFormContainer ArticleAttrTd_0 PlentyWebAttributeTitle">Rollen/Gleiter</div>
<div class="PlentyFormContainer ArticleAttrTd_1 PlentyWebAttributeSelect">
<select onchange=" this.blur();
switchImage(this.value ,'378_0', '378', aAttribute_Image_Values_378);
priceChangeOnMarkup(this.value, '2', '0', 'price_dynamic_0_378', aAttribute_Markup_Values_378, aCurrent_Markups_378, oldPrice_378);
"
class="ArticleAttrSelect PlentyAttributeSelect_1" id="attr_row_0_378_2"
name="ArticleAttribute[0][378][53]"><option value="" class="PlentyAttributeOption">-- bitte wählen --</option><option value="1364" class="PlentyAttributeOption PlentyAttributeOption_1364">Rolle weich gebremst für harte Böden </option><option value="1363" class="PlentyAttributeOption PlentyAttributeOption_1363">Rolle hart gebremst für Teppichboden </option>
</select>
</div>
</div>
这整个 div-select 东西是由这些元素生成的:
<div class="plentyAttributeSelectWrapper">
<div class="plentyAttributeSelectWrapperTitle"><span>Rollen/Gleiter</span>
</div>
<div class="plentyAttributeSelectWrapperContent plentyAttributeSelectHasDropdown">
<div>
<div class="plentyAttributeSelectedValue">
<span class="plentyAttributeSelectedValueName">Rolle weich gebremst für harte Böden</span>
<span class="plentyAttributeSelectedValueMarkup plentyAttributeSelectValueMarkup"></span><span class="plentyAttributeSelectedArrow">
<span></span></span>
<span class="clear"></span>
</div>
<div class="plentyAttributeSelectListWrapper">
<ul>
<li>
<div class="plentyAttributeSelectValue">
<a><span class="plentyAttributeSelectValueName">Rolle hart gebremst für Teppichboden</span>
<span class="plentyAttributeSelectValueMarkup"></span></a>
</div>
</li>
<li>
<div class="plentyAttributeSelectValue">
<a><span class="plentyAttributeSelectValueName">Rolle weich gebremst für harte Böden</span>
<span class="plentyAttributeSelectValueMarkup"></span></a>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
如果我尝试在更改选项时强制发出警报,则没有反应。