I have a getter to get the value from a cookie.
Now I have 2 cookies by the name shares= and by the name obligations= .
shares=
obligations=
I want to
Get cookie by name just pass the name of cookie to below function
function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i