I have a website with a form containing a list of locations. I want the default selection to be the location closest to the current location of the user.
I know how to get the current GPS location using Javascript, but the problem is that getting the location take some time, and I want the form to displayed immediately, and just reorder/select the closest item when (or if) the location is retrived.
I've never used Jquery before - can someone give me some starting help?
The locations are stored in a MySQL DB and i use PHP to retrieve the data.