how to change the value of a Div according to whats typed into a form input
<p>I know if I want to change the value of an input on a form according to what a user types into another input using:</p>

<pre><code>$('#inputName').change(function() {
    $('#inputURL').val($('#inputName').val());
});
</code></pre>

<p>But I'd like to have it so when someone types into the input it updates a Div with the text instead. IE they type into #inputName and this happens:</p>

<pre><code>&lt;div id="personsName"&gt; text appears here as they type&lt;/div&gt;
</code></pre>

<p>How'd I go about doing that? I doesn't work when I change #inputURL into #personsName :(</p>
