I have set some values in cookie but I can’t received the cookie data to another page on my web page. It display me error undefined variable , but same variable work in the same page, problem only another page.
How can I get cookie data another page using jQuery.
My code is:
<script type="text/javascript"> function add_to_cart(id){ $.cookie('p_id', id); } </script>
Question and answer is powered by AnsPress.io