if(element.height == element.scrollHeight) { element contracts on button click } else { element expands on button click }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)