I currently have 2 tables set up on my page. In the first table, there is a textbox (txt1) that includes a date picker. The second table contains 5 similar textboxes (txt2, txt3, txt4, txt5, txt6) also with date pickers.
My requirement is as follows:
Initially, all the text boxes should display today's date. When I change the date in the textbox in the first table, all the textboxes in the second table should automatically update to reflect the date chosen in the first table. I am looking for either a VB code or a JavaScript solution to achieve this functionality.
I have already implemented code to display today's date, but I'm struggling to code for the scenario described above.
If txt1.Text = "" Then
txt1.Text = Format((Date.Today), "dd-MMM-yyyy")
If txt1.Text <> "" Then
txt2.Text = txt1.Text
txt3.Text = txt1.Text
txt4.Text = txt1.Text
txt5.Text = txt1.Text
txt6.Text = txt1.Text
End If
End If