show and hide dynamic div by jquery

show and hide dynamic div by jquery

<script>
$(function () {
$("a").click(function () {
var ID = this.id;
$('.'+ID).toggle();
});
});

</script>

<?php
$j=0;
while($j<=10)
{
?><p>
<a href="javascript:void(0);" id="content<?php echo $j; ?>" class="team-readmore">read more.</a>
</p>
</div>
<div style="display:none"><?php echo stripslashes($getdata[$j][7]); ?></div>

<?php
$j++;
}
?>

  • I was wondering if you ever thought of changing the page layout of your blog?
    Its very well written; I love what youve got to say. But maybe you could a little more in the way of
    content so people could connect with it better. Youve got
    an awful lot of text for only having one or two pictures.
    Maybe you could space it out better?

  • What’s up, after reading this awesome post i am too glad to share my familiarity here with colleagues.

%d bloggers like this: