I am trying to wrap a div in a <table> and <tr> tags and a number of dynamic <dl> tags with <td> tags. Here is the code I am using the the head tagThe code that I am trying to manipulate is:HTML Code:<script type="text/javascript"> jQuery(document).ready(function() { jQuery(".gallery").wrap("<table><tr></tr></table>"); jQuery(".gallery-item").wrap("<td></td>"); } </script>
HTML Code:<div id='gallery-1' class='gallery galleryid-249 gallery-columns-9 gallery-size-thumbnail'><dl class='gallery-item'> <dt class='gallery-icon'> <a href='http://tendliving.com/beta/test-gallery/art-glass-web-ready-1-of-54/' title='art glass web ready (1 of 54)'><img width="150" height="150" src="http://tendliving.com/beta/wp-content/uploads/2012/01/art-glass-web-ready-1-of-54-150x150.jpg" class="attachment-thumbnail" alt="art glass web ready (1 of 54)" title="art glass web ready (1 of 54)" /></a> </dt></dl>
It is having no impact though. It is a WordPress site and my page is at http://tendliving.com/beta/test-gallery/ (to view user and pass are both"test"). Any help is really appreciated!


Reply With Quote



Bookmarks