title: cakephp 2 ajax form
body: <p>I'm having trouble building an ajax form in cakephp 2 which obviously has changed a lot since 1.3.</p>
  
  <p>I'm using the following code: </p>
  
  <pre><code>&lt;div id="commentForm"&gt;
  &lt;div id="commentStatus"&gt;&lt;/div&gt;
  &lt;?php
  echo $this-&gt;Form-&gt;create('Comment', array('action' =&gt; 'save', 'default' =&gt; false));
  echo $this-&gt;Form-&gt;input('Comment.comments_name');
  echo $this-&gt;Form-&gt;input('Comment.comments_email');
  echo $this-&gt;Form-&gt;input('Comment.comments_text');
  echo $this-&gt;Js-&gt;submit('Save', array('update' =&gt; '#commentStatus'));
  echo $this-&gt;Form-&gt;end();
  ?&gt;
  </code></pre>
  
  <p></p>
  
  <p>However the form is not submitted when pressing the button.</p>
  
  <p>I will be thankful for any help!</p>
  
  <p>Thanks!</p>