title: jQuery simulate hover and click
body: <p>I'm currently making an addon for a site, but I stumbled upon a problem:
  my addon needs to simulate clicking a div, but the div only appears if you're hovering over another div. I tried</p>
  
  <pre><code>$("#id-1").trigger("mouseover");
  $("#id-2").click();
  </code></pre>
  
  <p>but it doesn't really work because the box instantly dissapears again.</p>
  
  <p>is there any way I can do this?</p>
  
  <p>thanks in advance!</p>
  
  <p>edit: $("#id-2") isn't just made invisible, its no longer there in the elements, they're using some code to delete it and put it back in place when you hover over $("#id-1")</p>