Read more button

Here it is: Loom | Free Screen & Video Recording Software | Loom

Here is the code you need:

$(“#toggle”).click(function() {
var elem = $(“#toggle”).text();
if (elem == “Read More”) {
//Stuff to do when btn is in the read more state
$(“#toggle”).text(“Read Less”);
$(“#text”).slideDown();
} else {
//Stuff to do when btn is in the read less state
$(“#toggle”).text(“Read More”);
$(“#text”).slideUp();
}
});

2 Likes