How to pass JavaScript values to PHP within the Ajax – Jquery ajax
Here is the situation. I'm trying to pass from some Javascript values to various PHP functions within my ajax so it can properly be displayed on the page. Here is my code: $("[data-department-id]").click(function() { id = $(this).attr('data-department-id'); document.getElementById('department'+id).innerHTML = '';…