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();
精彩评论