Javascript and Cookie Functionality

I'm looking for a specific piece of Javascript. I have a button on a website, when the user clicks the button (onclick) javascript should write / update a cookie that appends an ID to the value of the cookie.

For example, if the user clicks a button next to a product with the ID - 12345, the cookie value would contain: 12345

If the user then clicked on a button next to product ID 5678, the cookie value would contain: 12345, 5678

The second piece of this would be javascript that would read the cookie value and display the results on the page.

As a user clicks the button, this results would update (refresh and re-read the cookie value) without reloading the page.

The last piece would be enabling a "delete" icon next to each result which would update the cookie value and remove that specific ID from the string of values.

This is basically enabling a light-weight save feature on my site.

If you agreed to help with this, ideally I would receive a JS file with functions that set and update the cookie, some HTML & JS for the results displayed on the page.

Taidot: AJAX, Javascript, PHP

Näytä lisää: user functionality, m string, button onclick php, help with javascript, cookie, html javascript example, php string contain, read write update, javascript write display, feature piece, button html javascript, javascript write, php string remove, php onclick update, javascript html result, onclick update, update onclick php, button javascript, save html javascript, file javascript read, javascript receive, javascript save button, save file javascript, read file javascript, php remove string

Tietoa työnantajasta:
( 20 arvostelua ) New York, United States

Projektin tunnus: #1685070

Myönnetty käyttäjälle:


Hello! I can do this for you!

250 $ USD 2 päivässä
(9 arvostelua)

7 freelanceria on tarjonnut keskimäärin 321 $ tähän työhön


Ready to start now.

250 $ USD 2 päivässä
(19 arvostelua)

After reading all your need I will say This is very easy and interesting job.I would like to do this job.

250 $ USD 2 päivässä
(32 arvostelua)

I can do this cookie work..

250 $ USD 4 päivässä
(54 arvostelua)

I am JS expert. I am ready to help you now/

250 $ USD 1 päivässä
(12 arvostelua)

Easy project for me. Let's start. Thanks

250 $ USD 3 päivässä
(1 arvostelu)

[Removed by Admin]

750 $ USD 1 päivässä
(0 arvostelua)