screen_rotation
Copied to Clipboard
<!DOCTYPE html> <html lang="en"> <head> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <div id="app"> <h3>Vue Js Datepicker get value</h3> <input type="date" v-model="selectedDate"> <p>Selected Date: {{ selectedDate }}</p> </div> <script type="module"> const app = new Vue({ el: "#app", data() { return { selectedDate: null }; }, }); </script> <style scoped> #app { margin: 20px; padding: 20px; border: 1px solid #ccc; border-radius: 5px; font-family: Arial, sans-serif; } h3 { margin-top: 0; } input[type="date"] { margin-bottom: 10px; padding: 5px; border: 1px solid #ccc; border-radius: 3px; font-size: 14px; } p { font-size: 16px; } </style> </body> </html>