I'm creating an app where users can post events going on in the area.
I have an input field that uses google places autocomplete.
<!---- EVENT LOCATION ---->
<div class="form-group">
<label for="location">Event Location</label>
<input name="location" type="text" class="form-control" id="location" placeholder="Hogwarts School, 127 Long Island">
</div>
<script>
var ac = new google.maps.places.Autocomplete(document.getElementById('location'));
ac.addListener('place_changed', function() {
var place = ac.getPlace();
});
</script>
This works just fine (see image)
just fine, but I want to add a functionality that Eventbrite has. Look at what they have here .
At the end of their dropdown menu, they have a link saying "can't find your location?"
I'd like to have that. Any idea on how to add a link to the bottom of the dropdown menu?
Alright I figured it out. Will change it later to stick to either jquery or javascript. If you know a better way of doing this, please let me know