View Full Version : onclick in template data

8 Jun 2009, 5:41 PM
Hi I have created a template and i want to have some clickable text on it

var tpl = <a id="attach" >testfunction</a>

I dont know how to call a internal function by clicking test function .

The template loads dynamically...so i dont have the dataa before hand

9 Jun 2009, 6:02 AM
after applying the template, setup click handlers on the dom elements. simple.

9 Jun 2009, 6:11 AM
Use a click handler on the outer, containing Element, and use the delegate option to target only those elements you want "clickable"