(short) Simple function error, I can't see where I went wrong - newbie
I know I'm a newbie and most of you will spot the error, but I can't figure it out for the life of me:
Currently, I have two ways to do the same thing, a test so that I can replicate things repeatedly. One relies on a function (that I can easily have multiple hidden ids, classes, etc), the other is inline:
//Green works, red doesn't, they should produce the same result for my test.
<input type="button" value="Hide Table" onclick=document.getElementById("TransectOne").style.visibility="hidden";>
<input type="button" value="Transect One" onlcick=CoverPage(TransectOne);>
Thanks in advance,
In addition to typo "onlcick" you have to place id of an element inside of quotation marks.
<input type="button" value="Transect One" onclick="CoverPage('TransectOne')">
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread