kswedberg / jquery-expander

Expand and Collapse HTML content
https://kswedberg.github.io/jquery-expander/
Other
459 stars 167 forks source link

Scroll back up after triggering "read less" #102

Closed djmtype closed 9 years ago

djmtype commented 9 years ago

When there is alot of content, after clicking the "read less" link, what would be the callback function in order to have this plugin scroll back up to the place where the text begins?

kswedberg commented 9 years ago

@djmtype : Sorry for not getting back to you sooner. You'd use the afterCollapse callback.

kswedberg commented 9 years ago

Closing this as answered.

Jimmyleg commented 9 years ago

thank you @kswedberg

kswedberg commented 9 years ago

you bet!