When using javascript to get a cookie value by its name,
- Get the cookie string by document.cookie
- Use this pattern to get the proper value. Just replace the cookie name in my pattern.
- Use 1st or 2nd group(this is only used when your cookie name is last in the string)
Submitted by khpatel4991 - 9 years ago