How to assign a value of jquery variable to a php variable?

JS

$('#claimno').html(data);

PHP

<div id="claimno"></div>

How do I get this div value to php variable???

Hi @chathas. Your JS is running on the client, PHP is running on the server; if you want to send that data content back to the server, you’ll have to do so using an XMLHttpRequest… PHP itself has no access to anything that already left the server.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.