Hi all,
I am trying to set a default value for a date textbox as 'mm/dd/yyyy'. And on focus of the textbox, the value needs to disappear and I would like it to reappear when the textbox loses focus. Also, when user types something into that textbox and then loses focus, then whatever the user typed needs to be displayed and not 'mm/dd/yyyy'.
I have seen this in multiple webpages and for the life of me I can't get hte code right . I tried specifying a condition like if the form is dirty then when the textbox loses focus, display whatever the user has typed, else display 'mm/dd/yyyy'. But just because the form is dirty, doesn't mean that the particular date textbox is dirty (it could be some other fields). So now I am out of ideas.
Any suggestions?