0
私はselect2の "text"の色を変更したいだけですが、レンダリングされません。select2の "text"プロパティにCSS構文を追加できますか?
results.push({
id: item.kode_mobil,
text: item.tipe_mobil + " (<span style='color:red'>"+item.nomor_polisi+"</span>)",
});
のように終了します。あなたのselectタグのクラス名は '.select' です
を想定CSS
を追加することができます おかげ
は 'html'プロパティを使うのか? – kukkuz
'結果 'とは何ですか?より多くの文脈が必要です。 – cambunctious
はい、私は思います。何をすべきか? – newbie