I have an input:
<input type="text" class="input" name="email" id="email" value="" disabled>
And JavaScript:
$email = "[email protected]";
function setEmail(email) {
document.getElementById("email").value = email;
}
window.onload = setEmail($email);
Now, it does show the email in the input field just how i want it to:

But it doesn't set the value when i inspect the element:

Even when i change the value inside the inspect element, it stays "[email protected]"
Now i need the value to be the same as what it is showing Why is it not doing so?