I am currently utilizing a date range picker within an Angular project.
<button type="button" class="btn btn-danger daterange-ranges">
<i class="icon-calendar22 position-left"></i> <span></span>
<b class="caret"></b>
</button>
Upon clicking this button, a dropdown menu appears to select a date range, along with an Apply Button that is assigned the class "applyBtn".
In jQuery, there is an option $(".class").click();
which triggers an onclick
function.
Unfortunately, I am unable to use (click)="getdateRange()"
. Is there a TypeScript equivalent for $(".class").click();
?
I am looking for a solution similar to:
$(".applyBtn").click(function(){ alert("The button was clicked."); });