In this code I'm trying to add the label if the user check the Radio box and remove the text if the user uncheck the label but it is not working. [the HTML file](https://i.stack.imgur.com/G3Iga.png)

[![enter image description here](https://i.stack.imgur.com/Oysvh.png)](https://i.stack.imgur.com/Oysvh.png)

```
function billingFunction()
{
    if (document.getElementById('same').value==true)
        {
        var name = document.getElementById('shippingName').innerHTML;
        var zip=document.getElementById('shippingZip').innerHTML;
        document.getElementById('billingName').innerHTML=name;
        document.getElementById('billingZip').innerHTML= zip;
    else
        {
        document.getElementById('billingName').innerHTML="";
        document.getElementById('billingZip').innerHTML= "";
        }

}

```