Cookies auto-incremented cookiesID

Cookies auto-incremented cookiesID

Hi, I am storing cookies data using Jquery in asp.net Code. My requirement is to increment the Cookie Id by 1       As I store another cookies. So that I can use this next cookies to find out the record on this behalf. E.g.
  <script>
            function SetEhsCookies(serviceID,cityID,vendorID)
            {
                var cookieValue ="" + serviceID + "," + cityID + "," + vendorID + "";
                $.cookie(' ehsCookie0001 ', cookieValue, { expires:7, path: '/' });
                alert(cookieValue);

            }
        </script>

kindly notice value in red color. This is generating CookieID through which i will access all record of this cookie. I want that it should increment the ID value by 1 as i click on any next "Add to Cart" button. e.g
for first item it uses CookieID--  ehsCookie0001
for second item       CookieID--  ehsCookie0002   // Incremented by 1
for third item           CookieID--  ehsCookie0003   // Incremented by 1
and so on...
Kindly help me out to store different cookies with different CookieIDs using jquery.