title: jquery javascript google maps: getting coordinates
body: <p>I have div with coordinates attribute:</p>
  
  <pre><code>    &lt;div class="c" coordinates="32.100,-118.3232"&gt;
      ..
      &lt;/div&gt;
  </code></pre>
  
  <p>I'm getting coordinates with the help of jquery:</p>
  
  <pre><code>    var coord = $(".c").attr("coordinates");
  </code></pre>
  
  <p>Do I need to convert this somehow when I need to put this into my google maps javascript:</p>
  
  <pre><code>    var latlng = new google.maps.LatLng(coord );
      addmarker(latlng)
  
  function addmarker(latilongi) // function to add new marker when click on compare
  {
      var marker = new google.maps.Marker({
          position: latilongi,
          title: 'new marker',
          draggable: true,
          map: map
      });
      map.setCenter(marker.getPosition())
  }
  </code></pre>
  
  <p>It seems like it doesn't fall into the right place when it deploys onto my page,</p>
  
  <p>Thanks</p>