开发者

Problem in using JQuery in IE6 for dynamic content selection

i am having 开发者_运维百科problem to get value selected in select Element in which options are added dynamically using JQuery's html() in IE6 , but it works in IE8.

var column = $('#cmbSearch0')[0].value;


Since id is unique you can do something like this.

Try

var column = $('#cmbSearch0').val();


does the following work?

var column = $('#cmbSearch0').options[0].value;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜