I have an html form and I want to embed google map so the user can pin point some location. After submitting the form how do I get the location?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although @zerkms gave a pointer to the correct information, that might not be enough. I’ve created a fiddle with a working example: to help. The basic parts are:
Here is the placeMarker code:
And here is the jQuery code used for handling the submit:
Here’s the form I used:
The submitAction is not needed in production, I just wanted to show what happens with the values:
Hope this helps!