I want to click an image of a calendar and have 2 hidden divs show up, so far one div is showing up but not the second.
In my a tag:
[code]<a href=”javascript:showCal(‘start’,’editStart’)”>
<img class=”icon” alt=”edit start date” src=”http://legalconference.com/images/calendar.gif” />
</a>
Here’s the javascript it calls:
[code]function showCal(start, calID) {
document.getElementById(“dimPage”).style.visibility = “visible”;
document.getElementById(calID).style.visibility = “visible”;
}
The first one is working because I directly type in the string “dimPage” but the second one is trying to use a passed string variable and I must be doing that wrong.