Skip to content

Commit 498734e

Browse files
committed
Update README.md
1 parent 2922d5b commit 498734e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ While passing in a callback to the constructor is the easiest way to listen for
146146

147147
````
148148
$('#daterange').daterangepicker();
149-
$('#daterange').on('apply', function(ev, picker) {
149+
$('#daterange').on('apply.daterangepicker', function(ev, picker) {
150150
console.log(picker.startDate.format('YYYY-MM-DD'));
151151
console.log(picker.endDate.format('YYYY-MM-DD'));
152152
});

0 commit comments

Comments
 (0)