开发者

Problems with Directions API in Google Maps V3 and jQuery

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜