Last post May 08, 2018 03:47 PM by bruce (sqlwork.com)
May 06, 2018 07:19 PM|ldoodle|LINK
Is it possible to get back to the first part of the chain without a whole duplicate reference?
In this case, I want the value of .toggle() to be from the first chain: group.find( ".content span" ).length
group.find( ".content span" ).find( "p:first-child" ).toggle( length < 1 );
I know I can do this:
group.find( ".content span" ).find( "p:first-child" ).toggle( group.find( ".content span" ).length < 1 );
But that's what I mean about about a whole duplicate reference to group.find()
May 07, 2018 05:16 AM|Yohann Lu|LINK
From your description, I suggest you can include all necessary code snippets for anyone else to be able to reproduce your issue from scratch along with a detailed description about the results including any exception messages.
This will help us quickly analyze your problem.
May 08, 2018 03:47 PM|bruce (sqlwork.com)|LINK
your original code makes little sense. it say toggle "p:first-child" of ".content span" if ".content span" doesn't exist. if it doesn't exist, there can not be a child to toggle.