开发者

JQuery problem in Firefox

开发者 https://www.devze.com 2022-12-11 22:46 出处:网络
I have a Problem with Jquery dropdown and Firefox. Thats the situation: in the index.html there is a dropdown selection with开发者_如何学运维 3 options. Each of theme has a html file.

I have a Problem with Jquery dropdown and Firefox.

Thats the situation: in the index.html there is a dropdown selection with开发者_如何学运维 3 options. Each of theme has a html file. In the second dropdown there is again 3 Options after i select the first dropdown.

The Problem is in the second Dropdown. Firefox always takes the last from the file. Internet-Explorer just does it fine.

I hope someone can help me, and sorry because my english, :-S

i uploaded the files in a zip if anybody could help me... link


Use a callback function to select the first drop-down option after loading the external content.

Modified index.html line 108:

$("select[name=ajax2]").load(datei + " option", null, ajax1Callback);

Add this to index.html line 126:

function ajax1Callback() {
    $('SELECT[name=ajax2]').val(0);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号