2 Replies Latest reply on Dec 7, 2009 1:59 PM by RituKnowsFlex

    F4 B2: Exercise 2.2: Using the event object

    Mark in Cali

      This code:

       if ((event.target.id == "endDate") &&
      (startDate.selectedDate >  endDate.selectedDate))
          {
              Alert.show("Start date must be scheduled before
              end date.");   
          }
      

      Does not work correctly.. in fact it doesn't appear to even run when I run the program- I can click away on the end date 1st and not get the alert message. The only I can occasionally get the warning is if I click on an end date, then a start date then a second end date