title: createbubblepopup jquery
body: <p>I was using jquery to create popup bubble tips for my website <a href="http://www.mobileapps.co" rel="nofollow">http://www.mobileapps.co</a> . Its a mobile applications website and driven dynamically For my all products on the home page I am using the following codem but some of my products does not come up with bubble popup.</p>
  
  <pre><code>&lt;ul&gt;
  
  &lt;?php  foreach($fetchapps-&gt;arr as $result){ ?&gt;
  &lt;script&gt;
      $(document).ready(function(){
          $('.popup0&lt;?=@$result['appid']?&gt;').CreateBubblePopup({
                                      position : 'top',
                                      align    : 'left',
                                      innerHtml: '&lt;?=@$result['embeddedcode']?&gt;&lt;p style="float:left"&gt;&lt;?=@substr($result['appdesc'],0,100)?&gt;&lt;img src="images/rate-off.gif" /&gt;&lt;img src="images/rate-off.gif" /&gt;&lt;img src="images/rate-on.gif" /&gt;&lt;img src="images/rate-on.gif" /&gt;&lt;img src="images/rate-on.gif" /&gt;&lt;/p&gt;',
                                      innerHtmlStyle: {
                                                      color:'#FFFFFF', 
                                                      'text-align':'center'
                                                  },
                                      themeName:  'all-black',
                                      themePath:  'images/jquerybubblepopup-theme'
                                  });
      });
  
  &lt;/script&gt;
  
  &lt;li class="popup0&lt;?=@$result['appid']?&gt;"&gt;
    &lt;div class="icon"&gt;&lt;a href="app-details.php?result=&lt;?=(@$result['appid'])?&gt;"&gt;&lt;?=$result['embeddedcode']?&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="app-details.php?result=&lt;?=(@$result['appid'])?&gt;"&gt;&lt;?=substr(@$result['apptitle'],0,15)?&gt;&lt;/a&gt;
  
    &lt;span&gt;&lt;a href="app-details.php?result=&lt;?=(@$result['appid'])?&gt;"&gt;&lt;?=$result['category']?&gt;&lt;/a&gt;&lt;/span&gt;
  
    &lt;b&gt;&lt;?php if($result['appprice']!='free'){ ?&gt;$.&lt;?php } ?&gt;&lt;?=$result['appprice']?&gt;&lt;/b&gt;
  
  &lt;/p&gt;&lt;/li&gt;&lt;?php } ?&gt;
  
  &lt;/ul&gt;
  </code></pre>