title: How can disable the textbox post back in php or javascript
body: <p>How can I disable or remove the page post back from textbox?</p>
  
  <p>When I press enter key in textbox the page was post back. I have a button to save the data through ajax function.</p>
  
  <pre><code>&lt;form name="test" class="form panel" id="test" method="post"&gt;
    &lt;input type="text" name="user" /&gt;
    &lt;input type="button" name="save" value="save" onclick="save()"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>the saving function are working good,the problem is textbox,</p>