jQuery Wrap Google Ad Bug 2
This is a demonstration of what happens when you attempt to wrap a Google ad using jQuery.
by Jason
HTML
<button>WRAP</button>
<div id="a">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-8339548926689039";
/* Open Air 468x15 */
google_ad_slot = "8535299421";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script>
console.log('inside of A');
</script>
</div>
CSS
div.wrapped {
border:1px solid #FF0000;
padding:5px;
margin:5px;
}
JavaScript
console.log( 'Page has loaded' );
jQuery("button").click(function (){
$("#a").wrap('<div class="wrapped"></div>');
});