I have a problem with a label field on my HTML page. I have set a label as below:

```
<label id="labelid" class="required control-label">Old Label Value</label>

```

Based on some other form input, I am trying to change the value of the label using javascript. The code for that is:

```
function change()
{
    document.getElementById(labelid).innerHTML = "New Label Value";
}

```

For some reason, this works fine on a desktop browser. It also works fine on IOS and Android phones. But when i view this HTML page on a windows phone browser, the new value is not visible.

Please advise. I must be doing something silly, but i cant figure it out.

The basic objective is to update a label based on what the user has typed in a text field. Please let me know if there is another way of doing it instead of using labels.