Answers for "php echo call javascript function with parameters"

PHP
0

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
        }
    });
};
Posted by: Guest on March-04-2020
0

php variable as javascript function parameter in echo

<?php echo "<script> autoFill(".$dropDown.", ".$emptyDropDown."); </script>"; ?>
Posted by: Guest on October-27-2020
0

php echo call javascript function with parameters

// Most effective way to call a javascript function with parameter of PHP variable
echo '<input type="button" value="Button" onclick="return openEditor(\'' . $path_image . '\')">';
Posted by: Guest on October-21-2020

Code answers related to "php echo call javascript function with parameters"

Browse Popular Code Answers by Language