today I discovered something that was quite confusing for me. I just tried to hide s.th via jquery... first I tried to use this
$(".specificdiv li:nth-child(3)").click(function(){
$(".anotherdiv").hide();
})
....but it does not work.
After a time I tried it this way:
$(".specificdiv li:nth-child(3)").mousedown(function(){
$(".anotherdiv").hide();
})
Can anyone explain me why mousedown works instead of click? Would be great to find out
EDIT
edited the anotherdiv.
$(".anotherdiv").hide();
is not the same as$(".another").hide();
click
=mousedown
+mouseup
.$(function(){ ... });
?