I am getting Latitude and Longitude with following code onthe page as display. How can I asign this values into the field instead of displaying
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
}
function showPosition(position) {
alert("Latitude: " + position.coords.latitude +
" Longitude: " + position.coords.longitude);