jQuery basic template

<div class="item-tmpl hide">
	<div class="item-wrap">%num%</div>
</div>
<script>
$(function(){
	var el = $('.item-tmpl').html();
	el = $(el).replace( '%num%', '55' );
	$('.target').append(el);
});
</script>

Leave a Reply

Your email address will not be published. Required fields are marked *