I am struggling to implement tabbing functionality on a Facebook application (business) tabs.
Despite having some basic HTML and JS [fbjs], the code I have doesn't seem to be working. I can't figure out what is wrong.
<div id="foo">foo div</div>
<script><!--
function changeText(evt){
evt.target.style.display = "none";
}
var foo = document.getElementById('foo');
foo.addEventListener('click',changeText);
//--> </script>
What could I be missing?