Best way to pass event callback from JQuery/JavaScript to php function

you can modify the cookie through document.cookie in JavaScript.

I need to do some php function to execute when user select yes?

to run a PHP function you must make a new request to the server.

2 Likes