when every i call a Javascript function from asp:button onclick event i got this error message
HTML
<asp:Button ID="btnFromCalOpen" runat="server" Text=" > " onclick="ShowCal()" CssClass = "SElementHide" />
Javascript
function ShowCal() {
var elem = document.getElementById('MainContent_CalendarFrom');
if (elem.visibility = "hidden" )
{
elema.style.visibility = "visible";
elema.style.display = "block";
}
else
{
elema.style.visibility = "hidden";
elema.style.display = "none";
}
}
Error Compiler Error Message: BC30456: 'ShowCal' is not a member of 'ASP.default_aspx'.
Please Help