The easiest way to get cookie value in javascript

I am looking for Google, but have found whole functions to get cookie value. Isn't there a single line statement to get cookie value in javascript?

+2
source share
2 answers

You can use javascript library for example. jQuery in addition to the plugin: http://plugins.jquery.com/project/cookie

Demo page: http://stilbuero.de/jquery/cookie/

+1
source

try document.cookie. Here is a good link

+2
source

Source: https://habr.com/ru/post/1792843/


All Articles