Hi everyone,

I'm using some checkboxes to update a query that returns content from a database. For this I have used PHP. Now I'm trying AJAX. Normally my query will run if a checkbox has selected with this code:

PHP Code:
if (isset($_POST['name'])) {

query etc... 
How can I write this with JavaScript? I'd like to do something like ($_POST['name']) === set. After this the PHP code will run as normal. Can I do it this way?


Thank you in advance!