Change text for "View more / View less"

Hi there,

I am trying to change the text "View more" and "View less" for expaning and collapsing paragraph texts. I have managed to intitially change the original text "View more" using the following Javascript,

$(document).on('knack-scene-render.any', function(event, scene) {
$("a.text-expand").html("Show/&Hide")
});

but this only changes the "View more" text the first time, and to collpase the text it says "View less", and after this the text is back to "View more" / "View less".

Any ideas out there?

Thanks heaps,
Jens

1 Like