How to create a widget inside the "jquery-tmpl"?

Viewed 215

I have to create a widget for the div which is inside the jquery-tmpl script.

<script id="movieTemplate" type="text/x-jquery-tmpl"> 
      <div id='name'>${Name}</div>
</script>

In the above script, I want to access the name div and create a widget.

Note: I am going to append that script in another widget, so here I don't know "what is the parent of this template".

How could I achieve this?

2 Answers
Related