Call Php Function From Javascript With Parameters Code Example


Example: javascript call php function with parameters

var deleteClient = function(id) {     $.ajax({         url: 'path/to/php/file',         type: 'POST',         data: {id:id},         success: function(data) {             console.log(data); // Inspect this in your console         }     }); };

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android SDK Location Should Not Contain Whitespace, As This Cause Problems With NDK Tools