I am using Boris Moore jsRender http://www.borismoore.com/ and I am trying to get the instance of each item. Does anyone know how to do that?
//render
$("divName").html(
$('#templateName').render('data')
);
//get instance. Here is my problem
$(".PriceFromPerHotel").each(function () {
selectedItem = $.tmplItem(this);
});
By the use of
selectedItem = $.tmplItem(this);
I am getting the error message
Object function (a,b){return new e.fn.init(a,b,h)} has no method 'tmplItem'
EDIT
the no method exception solved by adding the jQuery template library. The problem now is that I am getting an empty object. It doesn't return the instance.
Here is my html code
<script id="templateName" type="text/x-jsrender">
<div class="resultsBox">
//lot of code has here
<p class="offerSiloPrice">{{:Currency}} <span class="PriceFromPerHotel"></span></p>
</div>
Thanks