I am having problem with jquery function
<p>I am trying to make small calculator in jquery but don't know where to start, pls help</p>

<pre><code>&lt;body&gt;

&lt;script&gt;
$(document).ready(function(){

    function show_total(){
        document.write('something');
    }

    $("#form1").submit(function(){
        $("#total").append('&lt;p&gt;show total&lt;/p&gt;');
});

});
&lt;/script&gt;



&lt;form id="form1"&gt;
num1 &lt;input type="text" id="in1" size=5 /&gt; +
num2 &lt;input type="text" id="in2" size=5 /&gt; 
&lt;input type="submit"&gt;



&lt;/form&gt;

&lt;div id="total"&gt;&lt;/div&gt;
</code></pre>
