0 votes
85 views
in HTML by (3.5k points)
edited

How to add calendar in HTML Form?

1 Answer

0 votes
by (3.5k points)
selected by
 
Best answer

<!DOCTYPE html>

<html>

<body>

  

  

  

<button onclick=”CalenderFunction()">Put the date</button>

  

  

<script>

function CalenderFunction()n() {

  var x = document.createElement("INPUT");

  x.setAttribute("type", "date");

  x.setAttribute("value", "2014-02-09");

  document.body.appendChild(x);

}

</script>

  

</body>

</html>

Related questions

0 votes
1 answer 86 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 73 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 116 views
asked Jun 12, 2023 in HTML by radhe (2.2k points)
0 votes
1 answer 88 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 84 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)
0 votes
1 answer 91 views
asked Aug 19, 2022 in HTML by codelikepro (3.5k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

535 users

...