私は ajax で満たされた選択ボックスを持っています。ただし、ajaxを使用して選択オプションを変更する必要があります。次のコードは IE では機能しますが、Firefox では機能しません。助けてください。
var tts = $("select#myList option"); //collected all options
tts.each(function(i){
var cpid = this.attributes['pankti'].value; // check for desired rel tag
if(cpid === ppid) {
this.attr('selected','selected'); //...and select this option
}else{
this.removeAttr('selected',''); //.. else clear selection
}
});