[jQuery] Re: Urgent: Can't use attr(selected, true) on option in IE6

2007-07-06 Thread benjaah
Hi - I'm experiencing the same problem with IE6 where I get an error Could not set the selected property. Unspecified error when executing the code: $(option:first, #my_select).attr(selected,true); OR $(option:first, #my_select).attr(selected,selected); OR $(#my_select).children([EMAIL

[jQuery] Re: Problem using .children() + selector in IE6

2007-07-06 Thread benjaah
, 6:32 pm, Ganeshji Marwaha [EMAIL PROTECTED] wrote: i am just wondering here.. did u try to debug and find out what element is getting selected by jquery... are u getting an option element and only a single option element.? -GTG On 7/3/07, benjaah [EMAIL PROTECTED] wrote: Thanx Ganeshji

[jQuery] Re: Problem using .children() + selector in IE6

2007-07-03 Thread benjaah
is correct or wrong... but can u try (selected,selected) instead of (selected, true); -GTG On 7/2/07, benjaah [EMAIL PROTECTED] wrote: Hi all, I've got a page where I'm changing the options of a select box and setting the first one to be selected: $(#my_select :first-child).attr(selected

[jQuery] Problem using .children() + selector in IE6

2007-07-02 Thread benjaah
Hi all, I've got a page where I'm changing the options of a select box and setting the first one to be selected: $(#my_select :first-child).attr(selected, true); It works perfectly with Firefox, Safari and IE7 but doesn't with IE6 ! I've also tried the following without success: