Answers for "run php function in jquery"

PHP
0

call jquery function in php code

<?php if($_POST["action"] == "memberadd"){?>
	pop_up_box();   // jquery function
<?php } ?>
Posted by: Guest on June-09-2021
-1

jquery code to trigger php function

$.ajax({ url: 'phpscriptname.php',
         data: {function2call: 'getEmployeesList', otherkey:otherdata},
         type: 'post',
         success: function(output) {
                      alert(output);
         }
});
Posted by: Guest on April-13-2020

Code answers related to "run php function in jquery"

Browse Popular Code Answers by Language