Scroll to top

How to pick date(Date Picker) from text field with placeholder in jquery?


Notice: Undefined variable: string in /home/u665484253/domains/wpcodekit.com/public_html/wp-content/themes/twentytwenty-child/functions.php on line 61
 pick date(Date Picker)  from text field with placeholder in jquery

<html>
<head>

<link rel=”stylesheet” href=”//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css”>
<link rel=”stylesheet” href=”/resources/demos/style.css”>
<script src=”https://code.jquery.com/jquery-1.12.4.js”></script>
<script src=”https://code.jquery.com/ui/1.12.1/jquery-ui.js”></script>
<script>
$( function() {
$( “#datepicker” ).datepicker({ dateFormat: “dd-mm-yy” });
} );
</script>
</head>
<body>

<p>Date: <input type=”text” id=”datepicker” placeholder=”Choose date”></p>

</body>
</html>

Get more information

 

Read More Posts

Leave a Reply

Your email address will not be published.