开发者

Problems with Directions API in Google Maps V3 and jQuery

开发者 https://www.devze.com 2023-01-02 14:34 出处:网络
I\'m trying to get Google Maps Directions API working with jQuery, and I have the following code.. http://pastebin开发者_如何转开发.com/6jcGt706

I'm trying to get Google Maps Directions API working with jQuery, and I have the following code..

http://pastebin开发者_如何转开发.com/6jcGt706

Where #end is a select list in the HTML.. I'm Using jQuery 1.4.. I'm not sure as to what is going wrong.. Can you please help me with this...

Would appreciate if any one could help me fix the problem with this..

Thanks!


Check Firebug or Web Inpector Console for any errors thrown. Chances are you just need to change this line:

var end = $("#end option:selected");

to:

var end = $("#end").val();
0

精彩评论

暂无评论...
验证码 换一张
取 消