[jQuery] Re: why this will fail in Safari?

2007-10-28 Thread [EMAIL PROTECTED]
you are correct, this works in Safari, IE, Opera and Firefox, interestingly Firefox failed on this: option id=01 value=NY selected=selectedNew York/option when the options are ajax loaded into the element, thanks for your help, also to all others who responded to me, a difficult part of

[jQuery] Re: why this will fail in Safari?

2007-10-27 Thread Eric Martin
On Oct 26, 6:15 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I try to set a selected option in a Select box, the following code works without jQuery function defined, once I un-comment the jQuery part, it works in Firefox, but not in Safari any more, please help, Thanks. A.C.

[jQuery] Re: why this will fail in Safari?

2007-10-27 Thread Lee Hinde
Just for the archives, I found that Safari won't let jQuery add a selected attribute, but if one exists jQuery can toggle it. E.g., option id=01 value=NY selected=New York/option should work. I sorted through this a few months ago, so my memory may be a bit off. On 10/26/07, [EMAIL

[jQuery] Re: why this will fail in Safari?

2007-10-27 Thread Cloudream
$(document).ready(function(){ }); miss ; ? On Oct 27, 9:15 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I try to set a selected option in a Select box, the following code works without jQuery function defined, once I un-comment the jQuery part, it works in Firefox, but not in Safari