I wanna open a div and close it with this function but it doesnt work where is the wrong part i couldnt fix it, can anyone help me ?
function Element(id)
{
if(document.getElementById(id).style.display = 'block')
{
document.getElementById(id).style.display = 'block';
}
else
{
document.getElementById(id).style.display = 'none';
}
}