how to use jquery's $.ajax error parameter
<p>how to use the error parameter of the jquery's $.ajax thing ? let's say i have a form, and then when I submit it, the data is being saved to the table using the PHP script used in the ,</p>

<pre><code>   $.ajax({
      type: "POST",
      url: "classes/ajax.submitcv.php",
      data: "userid="+userid+"&amp;resumetitle="+resumetitle+"&amp;resumeintro="+resumeintro+
            "&amp;name="+name+"&amp;dob="+dob+"&amp;contacttel1="+contacttel1+"&amp;contacttel1type="+contacttel1type+
            "&amp;contacttel2="+contacttel2+"&amp;contacttel2type="+contacttel2type+"&amp;contacttel3="+contacttel3+
            "&amp;contacttel3type="+contacttel3type+"&amp;primaryemail="+primaryemail+"&amp;secondaryemail="+secondaryemail+
            "&amp;skype="+skype+"&amp;facebook="+facebook+"&amp;linkedin="+linkedin+"&amp;twitter="+twitter+
            "&amp;messenger="+messenger+"&amp;yahoo="+yahoo+"&amp;aol="+aol+"&amp;summaryofpositionsought="+
            summaryofpositionsought+"&amp;summaryofskills="+summaryofskills+"&amp;gender="+gender,
      success: function(){
        $('form#wsrecruitcvhead').fadeOut("normal",function(){
           $('div.success').fadeIn(1000);
        });
      },
      });
      return false;
   });
 });
</code></pre>

<p>based from the code above, if the data went through the database table, the form disappears and the success message inside a  tag shows, so how am I gonna output an error message instead, let's say I have a php function and the data to be inserted returns false, how to update the html file given the message and the form won't fadeOut ? in short..how to use the error param of $.ajax ?</p>
