I am currently working on implementing a read more, read less button functionality. My hidden content is stored in a span tag and I have utilized JavaScript to achieve this feature. However, upon clicking the button, no action is taken. The objective is to create a news section that expands to show more news articles when the button is clicked.
Previously, this functionality was working perfectly fine for me. I used the same code successfully before integrating it with some additional code, which unfortunately resulted in the current issue.
... (additional content removed for brevity)The expected behavior is for the button to display the content within the read more tag when clicked.
However, currently, the button does not perform any action upon clicking it.