title: jQuery for validating latitude and longitude regex
body: <p>I'm validating using jQuery as follow:</p>
  
  <pre><code>$("#register-form").validate({
  rules: {
  latitude: {
      required: true,
      strongCoord: true
    },
    longitude: {
      required: true,
      strongCoord: true
    }
  },
  messages: {
    yrAr: {
      required: 'Please enter year.'
    }
  }
  });
  
  $.validator.addMethod('strongCoord', function(value, element) {
  return this.optional(element) 
    value.length &gt;= 4
    &amp;&amp; /^-?([0-8]?[0-9]|90)\.[0-9]{1,6},-?((1?[0-7]?|[0-9]?)[0-9]|180)\.[0-9]{1,6}$/.test(value);
  }, 'Your coordinate format has error\'.')
  </code></pre>
  
  <p>And in the form the text fields are as follow:</p>
  
  <pre><code>input class="form-control" name="latitude" placeholder="Enter Latitude" type="text"&gt;
  &lt;input class="form-control" name="longitude" placeholder="Longitude" type="text"&gt;
  &lt;script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.3.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/jquery.validate.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.0/additional-methods.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>It keeps returning <code>Your coordinate format has error'.</code> even though i used coordinates i got from google. I'm sure its just syntax. Can anyone point me i the right direction? </p>
  
  <p>Thank in advance...</p>