Reply to thread

hopefully someone can assist me with this.


trying to make it so that when one div in my html page is hidden, another one is visible. tried this


function hideShow(first,second)

    {


        var div1 = document.getElementById(first).style;

        var div2 = document.getElementById(second).style;

       

        div1.display = div1.display? "block":"";

        div2.display = div2.display? "":"block";

    }


not sure how to proceed.


any help greatly appreciated.


thanks.


Back
Top