Answers for "how to embed code snippets in html"

0

html insert html snippets

$(function () {
  var includes = $('[data-include]')
  $.each(includes, function () {
    var file = 'views/' + $(this).data('include') + '.html'
    $(this).load(file)
  })
})
Posted by: Guest on June-03-2021
0

html insert html snippets

<div data-include="header"></div>
<div data-include="footer"></div>
Posted by: Guest on June-03-2021

Browse Popular Code Answers by Language