JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/ui-lightness/jquery-ui.css">

CSS

div {
    background: #EEE;
}

span {
    padding:10px;
}

JavaScript

var div_template = "<div><span> v1 </span><span> v2 </span><span> v3 </span></div>";

$(div_template).find('span')
    .text( function(i) { return 'some new value ' + i; } )
    .end().appendTo('body');