Hi, It does find only descendant elements. It's likely a fault in your plugin code, without seeing it one can just guess.
Try using $('li',this), maybe you get lucky :) - ricardo On Oct 15, 9:46 am, less than zero <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having some problems with a plugin I'm developing. I'm using > '$(this).find('whatever')' to locate the relevant elements within the html > code, which works fine if just one instance of the plugin is initialised. > However, if multiple versions are called they start to conflict with each > other because they seem to be referencing the same elements. I thought that > find() would only locate descendant elements. > > E.g. > $('#myList').find('li'); > > Would only find <li> elements that descended from <ul id="myList">. This > doesn't seem to be the case when used in my plugin however. Is there > something I'm missing here or does find() work differently to the way I > described. I can't find any information in the documentation to suggest > otherwise. > > Thanks in advance. > -- > View this message in > context:http://www.nabble.com/Problems-with-find%28%29-tp19991875s27240p19991... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.