I want to disable an input field, but when I submit the form it should still pass the value.
Use case: I am trying to get latitude and longitude from Google Maps and
Input elements have a property called disabled. When the form submits, just run some code like this:
disabled
var myInput = document.getElementById('myInput'); myInput.disabled = true;