Đã hoàn thành

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.

Kĩ năng: AJAX, Javascript, PHP

Xem nhiều hơn: 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

Về Bên Thuê:
( 20 nhận xét ) New York, United States

ID dự án: #1685070

Được trao cho:


Hello! I can do this for you!

$250 USD trong 2 ngày
(9 Đánh Giá)

7 freelancer đang chào giá trung bình $321 cho công việc này


Ready to start now.

$250 USD trong 2 ngày
(19 Nhận xét)

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

$250 USD trong 2 ngày
(32 Nhận xét)

I can do this cookie work..

$250 USD trong 4 ngày
(54 Nhận xét)

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

$250 USD trong 1 ngày
(12 Nhận xét)

Easy project for me. Let's start. Thanks

$250 USD trong 3 ngày
(1 Nhận xét)

[Removed by Freelancer.com Admin]

$750 USD trong 1 ngày
(0 Nhận xét)