-
click function
Dear forum users,
I got an litle problem which i cant resolve myself. I tried severale things but all failed. its about the following:
I fot an div #hidearrow in my another div #infobox that should fade the #infobox. And this does work in the following mather:
Code:
<div id="hidearrow" onclick='$("#infobox").fadeOut("slow");'></div>
But now i dont want the click function inline but outline. I tried this as followed:
in the body:
Code:
<div id="hidearrow"></div>
in the head:
Code:
<script>
$("#hidearrow").click(function() {
$("#infobox").fadeOut("slow");
});
</script>
But this isn't working. And i hope you guys/girls know what i did wrong.
Kind regards,
Augus
-
Re: click function
-
Re: click function
java != javascript. These are java forums...you might try your luck on javascript dedicated forum.