I am using jQuery datepicker, I have two datepicker input fields, like following:
<html>
<body>
<form method=post>
<input type=text id='start_date'> //datepicker field
<input type=text id='end_date'> // datepicker field
<input type=submit value=Submit>
</form>
</body>
</html>
I would like to implement the feature that, the form submit button is disable unless both datepicker input fields have selected date value from datepicker calendar.
That’s if both date fields have selected date value, the button is enabled automatically. How to implement this?
havent tried to see if this works but something like this if you have jquery
NEW answer : added a new script.
OLD answer :