web-profile

jQuery basic template

html:

<div class="item-tmpl hide">
	<div class="item-wrap">%num%</div>
</div>

js:

$(function(){
	var el = $('.item-tmpl').html();
	el = $(el).replace( '%num%', '55' );
	$('.target').append(el);
});

Leave a Reply

Your email address will not be published.