Javascript working in Chrome, but not IE11 [closed]

You should be referencing the element correctly.

It is either by id="billing_phone"

document.getElementById("billing_phone").value="";

or by name="billing_phone"

document.formName.billing_phone="";

or

document.getElementById("formId").billing_phone.value="";

Leave a Comment