How to undo an "onclick"
<p>I'm auto embedding <code>YouTube</code> video.</p>

<p>When clicking on the preview picture, it hides the preview and shows the video.</p>

<p>I want to go back to the preview when people are clicking somewhere else out of the video. </p>

<p>Is it possible ?</p>

<pre><code>&lt;div onclick=\"$(this).html(decodeURIComponent('$embed'));\" 
            style='cursor: pointer;'&gt;
   &lt;img src='$vignette' style='width:150px; cursor: pointer;'&gt;
  &lt;img class='play' 
         src='https://s-static.ak.fbcdn.net/rsrc.php/v2/yG/r/Gj2ad6O09TZ.png'&gt;
&lt;/div&gt;
</code></pre>
