Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function showDiv(divName) {
- var content = document.getElementById(divName);
- if (content.style.maxHeight){
- content.style.maxHeight = null;
- } else {
- content.style.maxHeight = content.scrollHeight + "px";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement