How to trigger mouse hover event on anchor tags of drop down list
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.dropbtn {
  background-color: #4CAF50;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}
.dropbtn:hover,
.dropbtn:focus {
  background-color: #3e8e41;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0000FF;
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}
.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}
.dropdown a:hover {
  background-color: #ff0000
}
.show {
  display: block;</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="dropdown"&gt;
  &lt;button id="myButton" onclick="PrintHello()" class="dropbtn"&gt;click&lt;/button&gt;
  &lt;div id="myDropdown" class="dropdown-content"&gt;
    &lt;a class="link" id="Home" href="#home"&gt;Home&lt;/a&gt;
    &lt;a class="link" id="About1" href="#about"&gt;About&lt;/a&gt;
    &lt;a class="link" id="Contact" href="#contact"&gt;Contact&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;</code></pre>
</div>
</div>
</p>
<p>I'm trying to trigger mouse 'hover' event on one of the anchor tag when the drop down menu pop-ups,</p>
<p>I'm using:</p>
<pre><code>$(&quot;#About1&quot;).trigger('hover');
</code></pre>
<p>It doesn't trigger any event. I have written some event handler for anchor tag for &quot;hover&quot;event. When I use:</p>
<pre><code>$(&quot;#About1&quot;).trigger('mouseover'); 
</code></pre>
<p>it calls the event handler but there is no hover effect seen on the web page. I was expecting it to be hovered as same as when you physically hover the mouse on it.
Am I missing something? Is it possible to create such effects by triggering the events? Please do suggest a solution.</p>