Skip to content

Instantly share code, notes, and snippets.

@mockra mockra/places.js
Created Nov 12, 2014

What would you like to do?
function googlePlacesInitialize() {
var inputs;
inputs = $('input[data-google-places]');
return $.each(inputs, function() {
return new google.maps.places.Autocomplete(this, {
types: ['geocode'],
componentRestrictions: {
country: 'us'
$(function() {
return googlePlacesInitialize();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.