jquery slidedown toggle up code example

Example 1: jquery slidetoggle

$("button").click(function(){
  $("p").slideToggle();
});

Example 2: $("button").click(function(){ $("div").slideToggle(); });

in a way that the form fields get hidden when user submits the
form. The confirmation info should show along with two 
buttons. One should say, "yes it is correct". The other should
say "Make changes".
  - If the user confirms that it is correct, submit the form 
and alert that form is submitted. If user chooses to make 
changes, the form fields should display back and let the 
user make edits.