Comment
praveenmuramall
Kilo Contributor
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
03-28-2019
01:36 AM
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);
}