I have a <div>
that expands when clicked and shrinks back when clicked again. Inside this div are images that should only appear once the div expands. My issue is ensuring that all images except the first one are hidden until the div expands.
https://jsfiddle.net/4ayy4amk/
document.getElementById("logo").onclick = function () {
( this.style.width == '45px' || this.style.width == '' )
? this.style.width = '241px'
: this.style.width = '45px';
};