Skip to content
Advertisement

How to send a jQuery ID to Bootstrap Modal to use it in PHP function?

I know there are lots of similar posts but nothing really helps me. I’m trying to run a PHP function in Bootstrap Modal with two parameters, one of the parameter is a row ID that needs to go from jQuery. I can send it and display it in a div id but how can I convert this parameter for a PHP function?

jQuery

JavaScript

Bootstrap Modal

JavaScript

php function

JavaScript

php function

JavaScript

Advertisement

Answer

Its just impossible like the way you want

So what you can do instead?

Use Ajax.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement