Getting a Specific Cookie Value by Key using Jquery cookie
This JavaScript function that gets a cookie value by the key. So if you’re interested in getting a particular value from a key-value pair in the cookie you would just enter the name of the cookie and the name of the key. If the cookie exists and the value is set then it will return the value. Otherwise it will return false.