jquery val() not working
<p>jQuery val() didnt working, this is the simple script:</p>

<pre><code>$("#com_form").submit(function() {
            var name = $("#nama").val();
                            var komentar = $("#komentar").val();
            alert.("Hi, "+name+" this is your comment: "+komentar)
            });

        });*/
</code></pre>

<p>this is the HTML form:</p>

<pre><code>&lt;form method="post" name="com_form" id="com_form"&gt;
  &lt;p&gt;What is your name:&lt;br&gt;

    &lt;input type="text" name="nama" id="nama"&gt;
  &lt;/p&gt;
  &lt;p&gt;Leave your comment here:&lt;br&gt;

    &lt;input type="text" name="komentar" id="komentar"&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;input type="submit" name="button2" id="button2" value="Submit"&gt;
  &lt;/p&gt;
&lt;/form&gt;
</code></pre>

<p>actually, I was tried to create ajax post, the value "nama" is submited but not "komentar". So I tried to debug using alert (like one above) and still "komentar" is not change. What should I do?</p>
