jQuery 1.3.2를 사용하고 있는데 정확히 동일한 problem mentioned here을 실행하고 있습니다.jQuery가 'selected'로 속성을 설정할 수 없습니다.
var tmp = jQuery(selector_string);
tmp.attr("selected", "selected");
저는 IE6에서 tmp 값이 올바르게 나타납니다. 그러나 속성을 'selected'로 설정하는 것은 실패합니다. 그것은 IE7과 Firefox에서 작동합니다.
다른 사람 having the same problem.
'tmp.val (data_selected)'는'tmp' 요소의 값을 반환합니다. 'attr()'함수를 묶을 수 없다. – artlung
@artlung 잘못된 코드를 인용했습니다. 그것은 편집되었습니다. thanks – Roger