Hi All,

I have the following js function used in an old web app. How can I
translate this to equivalent jQuery code? Appreciate your help!

function expandCollapse_onclick()
{
    var treeCell = document.getElementById("TreeviewTd");
    var topmenuCell = document.getElementById("MenuBarTd");
    var collapseExpandCell = document.getElementById
("CollpaseExpandTd");
    if (treeCell.style.display == '')
    {
        treeCell.style.display = 'none';
        topmenuCell.style.display = 'none';
    }
    else
    {
        treeCell.style.display = '';
        topmenuCell.style.display = '';
    }
}

Reply via email to