title: Adapting jquery.flip to toggle with button click
body: <p>I'm learning jquery and I'm trying to make this flip plugin toggle the flipped and unflipped settings by pressing a single button, but currently I can't work out how to adapt the manual trigger to do this. </p>
  
  <p><a href="http://nnattawat.github.io/flip/" rel="nofollow">http://nnattawat.github.io/flip/</a> </p>
  
  <p>Here is the relevant code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $(function(){
  
  
      $("#card-4").flip({
        trigger: 'manual'
      });
  
      $("#flip-btn").click(function(){
        $("#card-4").flip(true);
  
  
      });
  
      $("#unflip-btn").click(function(){
        $("#card-4").flip(false);
      });
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>What is the best way to do this? I was trying to re-write the code so that it would ask if flip was true, and if it was then clicking a button would make it flip false. </p>
  
  <p>Best,</p>
  
  <p>Simon</p>