Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

html insert html snippets

$(function () {
  var includes = $('[data-include]')
  $.each(includes, function () {
    var file = 'views/' + $(this).data('include') + '.html'
    $(this).load(file)
  })
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #html #insert #html #snippets
ADD COMMENT
Topic
Name
9+6 =