I am using date range picker in angular.
<button type="button" class="btn btn-danger daterange-ranges">
<i class="icon-calendar22 position-left"></i> <span></span>
<b class="caret"></b>
</button>
When I click this, I get the dropdown to select the date-range with an Apply Button which has a class "applyBtn".
In JQuery there is an option $(".class").click();
to get onclick
function.
I can't write (click)="getdateRange()"
. Is there any equivalent for $(".class").click();
in typescript?
I want something like,
$(".applyBtn").click(function(){ alert("The button was clicked."); });