DIVに:
<div id="materialcolor"></div>
この動的に生成されたコードを挿入する必要があります。
<select class="groupsmaterialcolorsDDs" name="group_6" id="group_6" onchange="putLayer(document.getElementById(this.id).value);">
<option id="futura_perspective_merita_aubergine.jpg" value="76" selected="selected" title="Aubergine">Aubergine</option>
<option id="futura_perspective_merita_bordeaux.jpg" value="100" selected="selected" title="Bordeaux">Bordeaux</option>
</select>
私は他の場所からjQueryのload()関数を介してこれを行います:
/ajaxcreator.php?product_id=14
AJAXの要求の前に、selectのonchaneパラメーターの関数putLayer()が機能します(他のDOMの要素を変更します-このselectのIDから背景を配置します)。AJAXリクエストの後-そうではありません。
おそらく、DOM要素を更新して、それらのmodyfiを再試行する必要があります。これどうやってするの?