Skip to content

Instantly share code, notes, and snippets.

@salipro4ever
Last active April 10, 2019 10:01
Show Gist options
  • Save salipro4ever/744e68d4a526fd9539ba0a50c87c9a6a to your computer and use it in GitHub Desktop.
Save salipro4ever/744e68d4a526fd9539ba0a50c87c9a6a to your computer and use it in GitHub Desktop.
Error concat html string in ajax

must add <\/closetag>

var markup = '<div class="media">'+
   '  <div class="media-left">'+
   '     <img class="media-object" src="'+ thumb +'" style="height:40px; width:40px;">'+
   '  <\/div>'+
   '  <div class="media-body">'+
   '    <div><strong class="media-heading">'+item.name+'</strong><\/div>'+
   '    <strong class="text-red"> '+numeral(item.price).format('0,0')+ '<\/strong>'+
   '  <\/div>'+
   '<\/div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment