Usually you want to create the Date & Time picker on an input. In this example we are going to do just that, however you can choose to initialize it on any HTML element. What the initialization does is that it binds the control to the input which means tapping or clicking it will open the Mobiscroll control and pass on its value.
A two-way binding is crated, so that the selected value gets pushed back to the input on submit.
<input type="text" id="date" placeholder="Please select..." />
- Learn about main features: See how the date & time picker can help you deliver a great experience to your users. Main features explained.
- Start a free trial: Get started with the Date & Time control by starting a free trial.