var EventAddress=$(".EventAddress").text();
$(".EventDirectionLink a").attr("href", url + EventAddress);
This is the jquery I am using to get the address value from the table cell and pass it to the map url as a query string but its not working? What am I doing wrong??
<div class="driving-directions-link">
<a href="http://maps.google.com/maps?q=">Get Direction</a>
</div>
<table cellpadding="10" class ="EventDetail">
<tr>
<td class="TableFields">Who Should Enroll?:</td>
<td>Everyone 18 and older who would like to attend</td>
</tr>
<tr>
<td class="TableFields">Location:</td>
<td class="EventAddress">1300 Albany Street,Beech Grove ,IN</td>
</tr>
</table>