Outputting a live calculation based on field values in a form
<p>I'd like to output a live calculation in a form using jQuery, but I'm not sure where to start due to my lack of JS knowledge. I wonder if anyone can help me with this please?</p>

<p>Here are my field values:</p>

<pre><code>&lt;input type="hidden" name="total_days" value="{total_days}" /&gt;
&lt;input type="text" name="cost_per_day" value="" /&gt;
&lt;p&gt;Total Cost: $&lt;span class="total_cost"&gt;&lt;/span&gt;&lt;/p&gt;
</code></pre>

<p>The total_days will be pre-filled with a value when the page loads. The cost_per_day will be entered by the user. I'd like the total_cost span to populate as the user types into the form, and the calculation is this:</p>

<pre><code>total_days * cost_per_day = total_cost
</code></pre>
