I need to add some html right after the body tag like this:
<body> <p>this is the HTML I need to add</p> </body>
Here is my jQuery code:
jQuery(document).ready(addPageFlipHTML); function addPageFlipHTML() { jQuery('body') // after body tag .after( "<div id='pageflip'><a href='http://sabwd.com'><img src='/test/wp-content/plugins/page-flip/images/page_flip.png' alt='' />" //create this html + "<span class='msg_block'>Subscribe via RSS</span></a></div>"); }
Does anyone know how to do this? I am trying to write a universal plugin and need a specific tag, such as a body, which needs to be added after, but inside.
Thanks Advance,
Mike
jquery html plugins
Michael sablatura
source share