I'm guessing that the (inadequately named) "o" variable is being stepped-on by some other javascript.
Try something a little more unique. "o" isn't namespace-safe at all. Try something like this: $.Mystuff={} // Create a private object for yourself $.MyStuff.$MyObject= $('some selector') // Cache a jQuery object $.MyStuff.MyLoopCounter=0 // Safely store a loop counter Etc... **--** Steve On Apr 15, 6:48 am, "john.potn" <john.potn....@googlemail.com> wrote: > need to get options from an event handler > > I have an event handler to a created select list within my widget. > > However the this variable becomes the select element which means that > I can no longer use > var o = this.options; > to get to my variables. > > How do I refer to my stuff ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---