views:

116

answers:

1

Hi,

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!

A: 

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();
mjangda