on form submit, i am trying to grab the value of the textbox below and shove it in an url
<input type="text" style="width: 300px" id="fromAddress" name="from" value="" />
here is my jquery code:
<script type='text/javascript'>
$(document).ready(function() {
$(":submit").click(function(e) {
var from = $("input#fromAddress").text;
$('div#printdirec').html('<a target="_blank" href="http://maps.google.com/addr=' + from + '&daddr">Print Directions</a>');
});
});
</script>
when i look at the URL, it doesn't have the correct from address.