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-tp19991875s27240p19991875.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to