I have a .load that executes a php mysql query from another page.

This query displays all the data of the database.

Each result is wrapped around a div.

<div id ="post<? echo $row['post_id']; ?>">
the id of the div depends on the post id of the result.

How do I put the data of $row['post_id'] in my javascript?