Skip to content

Instantly share code, notes, and snippets.

@wpsmith
Created July 5, 2015 21:50
Embed
What would you like to do?
JavaScript: Get Cookie By Name
@thavelick
Copy link

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

@jesuscampos
Copy link

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