Wildcard in document.form
I wonder if someone can help. I have a dynamically created form. Users add rows by clicking 'add row'.
On each row there is a field which represents a date. On the first row it is named "sd", on the second "sd" on the third "sd" and so on.
I also have a master date, called simply "sd". I have an onclick event on this. When the value of this is changed I want all of the other dates also to change.
I have tried the following:
Where * is a wildcard. This doesn't work. Can anybody suggest a solution? It will be very appreciated.
I imagine a loop will be needed if wildcards aren't an option, however I just can't get my head round it.
a solution that doesn't work
I tried the following. It doesn't work but I think it's a move in the right direction. Any ideas?
All of them will probably be or should be in a container element. Loop through the inputs in that container element and set the value to whatever you want.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)