Create a page with fields ‘From Date’ and ‘To Date’. Validate the form using JS such that –
‘From date’ is always less than ‘to date’.
‘To date’ should not be greater than current date.
Display 1 date of the current month in ‘from date’ field
Default date should to populated for ‘to date’ field
Otherwise display suitable error Message.
‘From date’ is always less than ‘to date’.
‘To date’ should not be greater than current date.
Display 1 date of the current month in ‘from date’ field
Default date should to populated for ‘to date’ field
Otherwise display suitable error Message.
Comment