I have started learning Jquery today from W3Schools. I am trying some examples.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$('.mouseover').mouseover(function () {
alert("Entered")
})
})
</script>
<p class="mouseover">Enter and leave from here</p>
<p class="click">Click and double click here</p>
<p class="hover">Hover over here</p>
I want to assign two functions to the same class mouseover which takes two events mouseenter and mouseleave. I do not want to use hover. I just want to know the process how it can be done?
To assign different methods by selecting a same element. Like clicking on a class will do one thing, hovering over it will do other and so on.