Support

Account

Home Forums Feature Requests Access country from a Google Maps geocoding request Reply To: Access country from a Google Maps geocoding request

  • Hi @wloske

    I believe you need to execute it only when the page is loaded like this:

    <script type="text/javascript">
    (function($) {
        
        // execute the code when the page is loaded
        $(document).ready(function(){
            
            // Your code here
            
        });
        
    })(jQuery);    
    </script>

    Sometimes, you also need to watch the newly created element by using the on() function. This page should give you more idea about it: http://stackoverflow.com/questions/6658752/click-event-doesnt-work-on-dynamically-generated-elements.

    Hope this helps ๐Ÿ™‚