Answers for "add snippets to html page"

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

Browse Popular Code Answers by Language