ajaxの結果に依存する選択ボックスを作成するJavaスクリプトがあります。
たとえば、結果 = 2x コンボの場合、javascript を使用して 2x 選択ボックスを作成します。
if (this.Type == "combo") {
var result = "<label>" + this.Name + "</label><select onChange='ProChange(this)' name='" + this.ID + "'>";
result += "<option value='0'>Please select</option>";
for (var i = 0; i < this.Values.length; i++) {
var resultId = this.Values[i].ID;
var resultName = this.Values[i].Name;
result += "<option value= " + resultId + ">" + resultName + "</option>";
}
result += "<option value='-1'>Other</option>";
result += "<input type='text' name='"+this.ID+"other' style='display:none;' id='"+this.ID+"' />";
result += "</select>";
私の主な質問は、動的に作成された選択ボックスにテレリック スタイルを適用できますか?