Comment
praveenmuramall
Kilo Contributor

Try this

HTML Code that goes in the template
 
<button class="testbutton">Test Button</button>
 
 
and Add below code in the link function:
 
function(scope, elem){

setTimeout(function () {
var testbutton = elem.find(".testbutton"); // testbutton is the class name of the button
 
testbutton.on('click', function(event) {
alert("TestButton");
$(this).animate({width: "150px"});
});
 
}, 0);
 
}