I want to have a daterange picker in a div like ,
xml
-div id=input_div
js
$ ( ' # input_div ' ). daterangepicker ( { } )
Is it possible to do ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to have a daterange picker in a div like ,
xml
-div id=input_div
js
$ ( ' # input_div ' ). daterangepicker ( { } )
Is it possible to do ?
Make sure you've included the necessary libraries for date range picking. You typically need to include the "jQuery" library and the "daterangepicker" library in your project.
example:
script src="path/to/jquery.js"> /script>
script src="path/to/daterangepicker.js">/script>
link rel="stylesheet" type="text/css" href="path/to/daterangepicker.css" />
in XML:
in js:
$(document).ready(function () { $('#input_div').daterangepicker(); });
or use like this:
$('#input_div').daterangepicker({ startDate: '2023-01-01', endDate: '2023-12-31', });
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.