Okay, I cannot figure this out. I have an external javascript file to declare variables and functions in my <head> element of my HTML. I've done this before and have made it work. And, likewise, studied my past suceeding brew and litterally copy and pasted the function but it still refuses to cooperate with me. What am I trying to do? I'll let the code do the talking:
that's my function. It makes 'eid's .style.display either "inline" or "none" appropriately, so I would have something like...
[HTML]<a href="javascrip t:dispChange('s Nav')" class="dispTogg ">...</a>[/HTML]
and there would be <span> element with the id 'sNav'. I'm completely stumped. hopefully thats enough info- this is my first question on here, so... yeah. that's that. Thanks for the help!
Code:
function dispChange(eid){if(document.getElementById(eid).style.display=="none"){document.getElementById(eid).style.display="inline";}else{document.getElementById(eid).style.display="none";}}
[HTML]<a href="javascrip t:dispChange('s Nav')" class="dispTogg ">...</a>[/HTML]
and there would be <span> element with the id 'sNav'. I'm completely stumped. hopefully thats enough info- this is my first question on here, so... yeah. that's that. Thanks for the help!
Comment