admin管理员组文章数量:1122832
How can you display a double calendar with the daterangerpicker in embedded mode
I want to display it as the example presented here : .html
It works very well with the classic datepicker.
Thanks for your help.
How can you display a double calendar with the daterangerpicker in embedded mode
I want to display it as the example presented here : https://bootstrap-datepicker.readthedocs.io/en/latest/markup.html
It works very well with the classic datepicker.
Thanks for your help.
- Could you show how your code looks and describe how the output differs from what you expect? – Stefan Hegny Commented Nov 21, 2024 at 14:57
- <code>$('#datepicker').daterangepicker(); $('#datepicker').on('changeDate', function() { $('#my_hidden_input').val( $('#datepicker').daterangepicker('getFormattedDate'); ) })</code> – Steph74 Commented Nov 21, 2024 at 15:26
1 Answer
Reset to default 0Solution :
$('#datepicker').datepicker({ numberOfMonths: 2 }) $('#datepicker').on('changeDate', function() { $('#my_hidden_input').val( $('#datepicker').datepicker('getFormattedDate') ) })
本文标签: javascriptHow to display a daterangepicker in embedded modeStack Overflow
版权声明:本文标题:javascript - How to display a daterangepicker in embedded mode - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736309822a1934156.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论