About this question
<!--Required scripts.--> I have a filter button created dynamically, and there I am adding attributes using jquery .attr.
jQuery("document").ready(function(){ // Other code $(objFilterButton).attr('class', 'btn btn-default btn-lightning'); $(objFilterButton).attr('onClick', 'showFilter(event)'); });
The class gets added but, I cannot see the onClick event getting added on the dom. Is this a limitation in lightning?