I would like to create a read more link that would extend a paragraph already being shown to reveal the entire text on the same page. If this could be solves with HTML5 and
A vanilla JS alternative:
The HTML:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam porttitor feugiat ipsum quis ullamcorper. Nullam vitae velit vitae tortor semper tempor ac vitae magna. Maecenas a ullamcorper neque. Aliquam vitae tortor luctus nisi rutrum eleifend non non leo.
Read More >>`
The JS:
function showMore(){
//removes the link
document.getElementById('link').parentElement.removeChild('link');
//shows the #more
document.getElementById('more').style.display = "block";
}