title: Hot to get Google map marker position in fields
body: <p>I have this code </p>
  
  <pre><code>    &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt;
      &lt;script&gt;
          $(document).ready(function () {
              // Define the latitude and longitude positions
              var latitude = parseFloat("00.000000");
              var longitude = parseFloat("00.000000");
              var latlngPos = new google.maps.LatLng(latitude, longitude);
              // Set up options for the Google map
              var myOptions = {
                  zoom: 10,
                  center: latlngPos,
                  mapTypeId: google.maps.MapTypeId.ROADMAP
              };
              // Define the map
              map = new google.maps.Map(document.getElementById("map"), myOptions);
              // Add the marker
              var marker = new google.maps.Marker({
                  position: latlngPos,
                  draggable: true,
                  map: map,
                  title: "PC Pro Offices"
              });
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>How can I get the marker latitude and longitude after it has been dragged and put it in one or two fields.</p>