> > In what case would you want to find the closest() match but outside of a > > context? > > $( this ).closest(".foo"); > > currently $( this ).context is equal to "this" >
Sorry, you misunderstand me - I meant that with your proposed case: $(DOMEelement).closest("body", DOMElementContext); returns $("body"); You were advocating for the context to be completely outside of the parent element chain. I was wondering what use case that was implying. --John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---