how to get the exact location or city name with the help of geolocation
let button = document.getElementById(“button”);
button.addEventListener(“click”, () => {
Displaying geolocation jumps out of div
The div is broken, the <p>
‘s are written outside of it.
I suspect it’s a response time problem, but I’m not able to fix it.
If I remove the jquery button effect and div all together, I’m able to have the location displayed just fine.