-
Writing a cookie
Hello
I'd like to write a cookie when a user check a box but it doesn't work...
Can anyone help me?
I have a module which contains:
Code:
<div>
<label onchange="noShow(); return false;">Don't show anymore <input name="ver" type="checkbox" value="1" /></label>
</div>
and a little script:
Code:
<script type="text/javascript">
function noShow(){
Cookie.write('noshow', '1', {duration: 1});
}
</script>
Thank you for your help
-
Re: Writing a cookie
I think there is no onchange event on LABEL, try it on the INPUT.
-
Re: Writing a cookie