Ryanmcgtx23
New Member
Can i get the content or value of the tag with php?I know i can get it with javascript:\[code\]$(function() { $('class or id').text();});\[/code\]But i would like to get it with php, so i can send it back in another query to my sql table.\[code\]function changeContentToId(id) { $("#spanContent").html(id); }<?php echo "<span onclick='changeContentToId($ob->ID)'>...</span>"; ?><span id="spanContent"></span>\[/code\]This is my code right now, any tips on how to write the top code in php? thanks.