のボタンにアイコンを追加すると問題が発生する他のすべてのボタンが正しくフォーマットされています。アイコンはafter()ファンクション文字列のcreateSaveクラスボタンとは別にアイコン付きで表示されます。誰でも何が起こっているか知っていますか?jquery ui
のjQuery:
$(".save,.createSave").button({
icons: {
primary: "ui-icon-disk"
}
});
$('#newJudgeLink').click(function(){
$(this).hide();
$('#tableJudges tr:first').after('<tr class="altr" id="newCreateRow"><td><button class="createSave">Save</button></td><td><input type="text" id ="createJudgeName" value="Last Name"/></td><td><?php $x = getSections(); echo '<select id="createJudgeSection">'; foreach($x as $y){ echo "<option>$y</option>"; } echo "</select></td><td>Active</td></tr>"; ?>');
});
このようにすることは決して考えていない。いい案。ありがとう! –