tamble / jquery-ui-daterangepicker

A JQuery UI based date range picker.
MIT License
184 stars 110 forks source link

How to get text of presetRanges? #71

Closed mukda closed 5 years ago

op16 commented 7 years ago

$('#your_id').daterangepicker('option', 'presetRanges') will get you the array of presets; each is an object with a text propriety.

e.g. $('#your_id').daterangepicker('option', 'presetRanges')[0].text for the text of the first preset range.

mukda commented 7 years ago

Thanks op16 I have more question.... If i need get text of presetRanges after click some menu , how get? ( I try get value but daterangepicker show startdate and enddate not show text.)