call jquery function in php code code example
Example 1: how to call js function from php
<?php
if(your condition){
echo "<script> window.onload = function() {
yourJavascriptFunction(param1, param2);
}; </script>";
?>
Example 2: call jquery function in php code
<?php if($_POST["action"] == "memberadd"){?>
pop_up_box(); // jquery function
<?php } ?>