I would like to place some php code within a div with the class called “pickme” using jquery.
So basically, Jquery goes through the DOM and finds every div with the class “pickme” and places a little php code in that div.
Any suggestions or codes used to perform this?
you could load the php page into the div with the jquery .load() function. That will call the php, but if you need to alter the pages contents based on that php, you will need to make that php page use jquery to make those changes (outside of the div).
$('#div').load('myPage.php');myPage.php will load server-side, then display, giving you the functionality you are looking for.