Jquery examples

content loading
&lt;script&gt; function loadTab( tab, area ) { try {  $j( '#' + area ).addClass('loading'); $j( '#tabcontent' ).load( tab.href + " #innercontent",   function(responseHtml)   {     if ( $j( '#tabcontent' ).length == 1 )     {       //for some reason IE7 does not load the content properly, this gets around that!       var start = responseHtml.lastIndexOf('&lt;div id="innercontent"&gt;');       var end = responseHtml.lastIndexOf('&lt;!-- end innerContent --&gt;');       var content = responseHtml.substring( start, end );       $j( '#tabcontent' ).html( content );     }     $j( '#' + area ).removeClass('loading');   }); return false; } catch ( exception ) {    //javascript failed, fall back to a GET request. return true; } } &lt;/script&gt; &lt;!-- begin content-block --&gt; &lt;div id="tabcontent" class="tabcontent"&gt; &lt;div id="innercontent"&gt; &lt;#-- what tab has been selected, show the appropriate page based on the tab. --&gt; &lt;#include "${tabContentPage}" /&gt; &lt;/div&gt;&lt;!-- end innerContent --&gt; &lt;/div&gt; &lt;!-- close content-block --&gt;

removing content
$j( document ).ready(  function  {   while ( $j(".tagCloud > .jive-sidebar-body").height > 115 )   {    $j(".tagCloud > .jive-sidebar-body > .jive-sidebar-populartags > li:last").remove;   }  }     );