jquery - dcAccordian issue on expand collapse in wordpress -
Hi there I am using the dcAccordion jquery file for my plugin menu I add an attribute to collapse and expanded Extend it to a file and make a condition for it and use the plus (+) sign (-) symbol for this.
When I open the site for the first time, the sign is showing me on the parent menu, now if I click on the parent menu then the minus sign in the plus sign is converted, but when I use the child Clicking on the menu then signing in to Minus Sign Plus. Do not know what is happening.
This is my code:
Collapse / expand the attribute in the DCacordian file
expandCollaps: true This is my position
// Here is my position if (defaults.expandCollaps == true) {$ ('li.' + ClassParentLi, obj). Each (function () {var state = {collapse: '& lt; span class = "wpc-collapse"> (-) ', expand: '& lt; span class = " Wpc-expand "& gt; +) & lt; / Span & gt; '} $ (This) .find (' a '). first (). Attachment (state.expand); $ (This) Click (function () {if ($ (this) ( 'Span'). Haclas ( 'wpc-collapse')) {$ (this) .find ( 'span'), remove (); $ (this) .find ('A'). First (). (State.expand);} and {$ (this) .find ('span'). Remove (); $ (this) .fund ('a'). Append (state.collapse);}}};}); }
OK, I add this code to my plugin home page < / P>
And my dcAccordion works perfectly
Comments
Post a Comment