Remove photo gallery table using jquery | Adobe Business Catalyst

<script>
$('table.photogalleryTable').replaceWith($('table.photogalleryTable').html()
  .replace(/<tbody/gi, "<div id='photogalleryTable' class='row'")
  .replace(/<tr/gi, "")
  .replace(/<\/tr>/gi, "")
  .replace(/<td class="photogalleryItem"/gi, "<div class='col-md-4'")
  .replace(/<\/td>/gi, "</div>")
  .replace(/<\/tbody/gi, "<\/div")
);
</script>

No comments:

Post a Comment