title: JQuery on click display Save Button
body: <p>I am trying to make a simple profile linked to our company database, in which clients can log in and check their details.  Basically, I need a function that will display a Save button when the edit button is clicked.  As soon as I press cancel, the save button should disappear again.</p>
  
  <p>I am a bit of a noob, so maybe I am missing something very simple, for which I apologise.  The code and JSFiddle follow: </p>
  
  <p><a href="http://jsfiddle.net/65D9C/26/" rel="nofollow">http://jsfiddle.net/65D9C/26/</a></p>
  
  <pre><code>&lt;HTML&gt;
  &lt;button src="#" id="littleButton"&gt;Edit Profile&lt;/button&gt;
  
  &lt;div id="button-sm"&gt;
      &lt;input type="submit" class="ButtonSm" value="Save" id="save_button" name="save_button"&gt;&lt;/input&gt;
  &lt;/div&gt;
  &lt;/HTML&gt;
  
  &lt;script&gt;
  $(document).ready(function () {
      var SaveButton = $('#button-sm');
      $(SaveButton).hide();
      $('#littleButton').onclick(function (e) {
          $(SaveButton).animate({
              'opacity': 'toggle'
          });
      });
  });
  &lt;/script&gt;
  </code></pre>