jquery - how to change div text after form submit
<p>i have a form to enter directions  and display a google map</p>

<pre><code>&lt;form action="#" onsubmit="setDirections(this.from.value, 'address', 'en_US'); return false"&gt;
</code></pre>

<p>Outside the form i have the following:</p>

<pre><code>Formatted Directions&lt;div id="printdirec"&gt;&lt;a href="http://maps.google.com/"&gt;Print Directions&lt;/a&gt;&lt;/div&gt;
</code></pre>

<p>i want to change the value inside the div tag 'printdirec' to say something else</p>

<p>i tried this (which i thought would work) but it doesn't:</p>

<pre><code>    &lt;script type='text/javascript'&gt;
        $(document).ready(function() {

        $(":submit").click(function(e) {
                $('div.printdirec').val('tttt')
            });

        });
&lt;/script&gt;
</code></pre>

<p>any suggestions of what i am doing wrong?</p>
