Is it possible to load JS for each div. Now it only loads for the first div.
There are multiple posts in same page. I need to load the post.php inside every #box div.
Is it possible in this way or is there some better way to do this ?
<h2>title: <?php echo $post_title ?></h2>
<div id="box" >
<script type="text/javascript" >
$(document).ready(function(){
$('#box').load('post.php?id=<?=$post_id?>')
});
</script>
</div>