Set a default value for the jQuery daterangepicker by Filament
Is it possible to set the value of a daterangepicker field programmatically? How ca开发者_如何学Gon this be accomplished?
It's just a text input, so yes, you can set it.
On Filament's example page, you could do the following:
$('input').val('08/10/2010');
Additionally, an excerpt from Filament group's date range picker page:
Driven by Input Value
The datepickers will be generated based on any values that are in the inputs at page load. For single inputs, it will split the input value by the rangeSplitter character (default: '-'). Each value is parsed by date.js, so you could even begin with a range like "today - next week" in the input, and the datepickers will be set accordingly.
I found daterangepicker ( http://www.filamentgroup.com/lab/date_range_picker_using_jquery_ui_16_and_jquery_ui_css_framework/ ) and am trying to customize it.
Selected should be shown by orange highlighting
Week - Select the current week from Sunday to Saturday and then allows the user to select any other week range where Sunday to Saturday will be selected
Month - Select the entire current month and then allows the user to flip months where the entire month block is selected.
精彩评论