Posted By

mikael12 on 10/30/10


Tagged

js-concat


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


String concatenation with array join


 / Published in: JavaScript
 

  1. var el = ['<li id = "services_item' + service_id + '">',
  2. '<span class="left">Title</span>',
  3. '<span class="right"><a href="#" onclick="remove();">Remove</a></span></li>'].join("\n");

Report this snippet  

You need to login to post a comment.