0

I am using Jquery mobile in my Html5 application.I have created datepicker with input type date tag like :

 <input name="" id="mydate" placeholder="" value="" type="date"  data-mini="true">

Now I want to disable future dates. Please suggest me workaround for this. Note :I cannot use JQueryUI in my project.So cant use JqueryUI datepicker.

2
  • set max attribute to current date Commented Jun 3, 2017 at 19:38
  • @Satpal: no its not working Commented Jun 3, 2017 at 19:43

1 Answer 1

0

https://www.w3schools.com/html/html_form_input_types.asp

You can use max property and set this value using js

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.