-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Triggering 'read more/less' behavior using some other link or button click? #14
Comments
I need to do the same thing! Any ideas? |
Hi,
This worked for opening the content with my custom link, but not for closing it. |
to do both the expander and collapser I first added two links on the page
Then added the following to my ready jquery
Basically when each link is clicked, its function iterates through all the expander read-more or read-less links and triggers the click event. |
Hi,
Can I trigger the 'read more' / 'read less' behavior using some other link in my mark-up and passing it's class to the function?
I'm using the plugin to expand the content of a div, and at the same time I'm using fadeOut to reveal 6 more divs below this div. Now the 'read less' button still appears at the same position, in the top div, where the viewer would have to click it to hide the content and the rest of the divs. If I can append a 'read less' link to the bottom of the last div, and trigger the 'read less' behavior by clicking it, it would look neater! I tried appending a similar span > link markup with the same classes as the plugin generates, but it doesn't work.
Any ideas how I can do it ?
Thanks for any help!
Rutwick
The text was updated successfully, but these errors were encountered: