ok

Mini Shell

Direktori : /home2/selectio/public_html/tnpsctestbatch.com/
Upload File :
Current File : /home2/selectio/public_html/tnpsctestbatch.com/calender.php

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Default Open Calendar Example</title>
  <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
  <script src="https://code.jquery.com/jquery-3.6.4.min.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  <style>
    body {
      font-family: "Arial", sans-serif;
      margin: 50px;
    }
    .datepicker-container {
      position: relative;
      margin-bottom: 20px;
    }
    #datepicker {
      width: 200px;
    }
  </style>
</head>
<body>

<div class="datepicker-container">
  <label for="datepicker">Select Date:</label>
  <input type="text" id="datepicker">
</div>

<script>
  $(document).ready(function() {
    // Initialize Datepicker
    $("#datepicker").datepicker({
      dateFormat: "dd-mm-yy", // Set your desired date format here
      showAnim: "slideDown", // Animation to show the datepicker
      beforeShow: function (input, inst) {
        setTimeout(function () {
          inst.dpDiv.css({
            top: 'auto',
            bottom: '100%'
          });
        }, 0);
      }
    });

    // Open the datepicker when the page loads
    $("#datepicker").datepicker("show");
  });
</script>

</body>
</html>

Zerion Mini Shell 1.0