cookies code help needed (html,css,js)
I'm getting crazy over this script. It's not working. Can anyone give me a tip how to fix it?

my codes are following:
inside the <body> tag in my html:
<div class="cookie-message"> <p class="cookie-content">This website uses cookies. By Browsing this website you acconsent to the use of cookies. </p> <p class="cookie-content"><button class="button">OK</button> <a href="http://here-goes-my-cookie-page.com">Read more about cookies</a></p> </div>
.cookie-message {
width: 100%;
background: #333;
color: #ddd;
padding: 1em 1em .5em;
position: fixed;
left: -5px;
bottom: 2em;
text-align: left;
z-index: 1;
} <!--Start Cookie Script-->
<script>
$('.cookie-header').click(function() {
$('.cookie-content').slideToggle('fast');
$('.cookie-content button').click(function() {
$('.cookie-content').slideUp('fast');
});
});
</script>
<!--End Cookie Script-->
so I copied it and inserted it before the </body> tag and obviously it is not working...can someone help me? I need the message to close when pressing the "ok" button...
-
2WDHost -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[10334177].message }}-
wordpress+expert -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[10334298].message }}-
geokoder -
[ 1 ] Thanks
{{ DiscussionBoard.errors[10334518].message }} -
-
-
-
Arcsn -
Thanks
{{ DiscussionBoard.errors[10335635].message }} -
-
2WDHost -
Thanks
{{ DiscussionBoard.errors[10341761].message }} -
-
wordpress+expert -
Thanks
{{ DiscussionBoard.errors[10341800].message }} -