how to join two table in codeigniter easily[updated] | ci_model | ci_controller | codeigniter 3 -datainflow
HI,Today I am going to share you list of jquery mouse event with example.Before go through the function use the jquery library.Follow the each event one by one.
Use the jquery library.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
Mouseup
$("button").mouseup(function(){ alert("button") });
This mouseup event triggers when mouse is up on an element.
Click
$("button").click(function(){ alert("Hello world"); });
This event is trigger when an element is clicked.
Double Click
$("button").dblclick(function(){ alert("Hello world"); });
This event is trigger when an element is clicked double time.
Mouseleave
$("button").mouseleave(function(){ alert("Button"); });
Mousedown
$("button").mousedown(function(){ alert("Button"); });
Hover
$("button").hover(function(){ alert("button"); }, function(){ alert("Bye! button"); });
This event works while mouse hover is done inside an element.
Mouseenter
$("button").mouseenter(function(){ alert("button"); });
Focus
$("input").focus(function(){ $(this).css("background-color", "#ff5733"); })
Here this event while you are focusing on an input element.If you focus on this input ,its background color will be changed.
Blur
$("input").blur(function(){ $(this).css("background-color", "#f9664f"); });
Related posts