$("li").hover(
function () {
// do x
},
function () {
// do y
});
.. thats for hover, how would I do the same for click toggle, i.e do x on click and y on second click?
Manythanks
$('li').toggle(function() {
alert(1)
}, function() {
alert(2);
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With