I was working through an example, and I came across this.
I had a div set initially to be collapsed, and then checked its status from a javascript function. I was initially testing for "none", and it wasn't working. After some testing, I found that testing for "" did work. Is this standard, or is it something I'm doing?
Working version:
<div id="menuItem" class="well collapse">
<p id="itemDesc">test</p>
</div>
...
function showItem(itemName){
if (document.getElementById('menuItem').style.display == ""){
document.getElementById('menuItem').style.display = "block";
}
}