JavaScript: Get Cookie By Name
It doesn't work if you have only one cookie in document.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It doesn't work if you have only one cookie in document.
Looks like this came from: http://stackoverflow.com/a/15724300/30529
Might be useful for others to see the explanation there of how it works