I am needing to create a show more/less text function, but with just JavaScript and HTML.. I can\'t use any additional libraries such as jQuery and it can\'t be done with CS
Try to toggle height.
function toggleTextArea() { var limitedHeight = '40px'; var targetEle = document.getElementById("textarea"); targetEle.style.height = (targetEle.style.height === '') ? limitedHeight : ''; }