The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript needing a script to click a link and collapse text

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #154833
    Ron Wolpa

    I need a script to duplicate the “click a link then collapse text” likewise this one :
    I ´ve tried to duplicate the parts of the code that makes the above link page work without success.
    Seeking for a script through Google I found the fade text with read more button –
    The trouble with the above script is that it works with side by side columns and not with rows of text one above other.
    I ask if you could suggest me something.
    Thank you for your attention.

    Ron Wolpa

    Hey great , thank you very much for your quick reply.

    Ron Wolpa

    I attempted unsuccesfully to adapt your code to my project :
    It looks like the js is not working in my case;
    Below error message given by Chrome´s console :
    Uncaught TypeError: Object [object Object] has no method ‘on’ collapse_text.js:5
    (I´ve called the script collapse_text.js)
    Is there something that I´ve missed?
    Thank you very much for your attention.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.