开发者

Problem in using JQuery in IE6 for dynamic content selection

开发者 https://www.devze.com 2022-12-22 17:11 出处:网络
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.

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

精彩评论

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

关注公众号