I'm trying to call a PHP funtion after onclick event, the function needs a DOM element's value as parameter (this is why i have to use jquery as well)
I want to have something which looks like this :
<button type="button" onclick="document.write('<?php hello("parameter") ?>');">Submit</button>
Here's what i've been able to do so far, but it's not working :
<button type="button" onclick="document.write('<?php hello("<script>$(#idproduct).text()</script>") ?>');">Submit</button>
Any help would be appreciated, thank's.