Thanks. If the existing code wasn't working in any browser I'd look
for a work around, but since it does work in anything but Safari, I
want to make sure there's not a problem with my code before I submit a
bug to someone.

On 8/21/07, TheThirdPart <[EMAIL PROTECTED]> wrote:
>
> You should have a look at jquery select box plugin,
> http://www.texotela.co.uk/code/jquery/select/
> BTW:Know more about it at http://www.thethirdpart.com/blog/?cat=10
>
>
> On 8月22日, 上午1时10分, Lee Hinde <[EMAIL PROTECTED]> wrote:
> > Hi;
> >
> > Based on this conversation:http://tinyurl.com/2qwpna
> >
> > I've added this code to my page
> >
> >         function updateColor()
> >         {
> >            var currentColor = $("#setColorKey").val();
> >
> >            $("#color_Key option").each(function()
> >            {
> >               // $(this) is the current <option> element
> >               var thisValue = $(this).val();
> >               if (thisValue == currentColor){
> >                  $(this).attr("selected", true);
> >                       //safari logging.
> >                         if(window.console) 
> > {window.console.log($(this).attr("selected")+"
> > "+thisValue);}
> >                                 return false;
> >                         }
> >            });
> >         }
> >
> > I'm testing on a Mac now, moving to Windows next.
> >
> > The problem is, on Safari 3. the option doesn't get selected. It works
> > fine in Firefox/Camino.
> >
> > The Safari javascript console shows the log entry, but doesn't update
> > the select.
> >
> > Can anyone offer any insight?
> >
> > Thanks, in advance.
>
>

Reply via email to