popup bubble with dynamic div id
Hi,
I have a series of dynamic div ids like
- <div id=dumm1>aaaa</div>
- <div id=dumm2>bbbb</div>
- <div id=dumm3>cccc</div>
Now onmouseover there is a popup bubble box appearing...
jquery code:
- $(document).ready(function() {
- $('#dummy1').SetBubblePopup({
- innerHtml: '<p>You can set any HTML tag<br />inside this popup!<br /><a href="action.php?pid=">this is a link</a></p>'
- });
Now i have modified this a little bit with
- <div id="dummy<?=$get_rec['pid'];?>" class="show"><?=$get_rec['ptitle'];?> </div>
- $(document).ready(
- function(){
- $( 'div show' ).mouseover(
- function(){
-
- $( '#dummy' + $( this ).attr( 'id' ) ).SetBubblePopup({
- innerHtml: '<p>You can set any HTML tag<br />inside this popup!<br /><a href="action.php?pid=">this is a link</a></p>'
- });
- }
- );
- }
- );
I am not getting any error but the box is not appearing.....Please suggest me any clues....
Thanks in advance...
Raj