views:

27

answers:

2

Hi

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;

+1  A: 

Since id is unique you can do something like this.

Try

var column = $('#cmbSearch0').val();
rahul
yes above is worked..thanks
kmk_comeng
A: 

does the following work?

var column = $('#cmbSearch0').options[0].value;
henchman
rahul's is shorter and using jquery, use that :)
henchman