I am having below requirement. Everything is working fine but when the change the year dropdown values it'senter image description here affecting the month values for another month dropdown. Can I get a solution for this?
Asked
Active
Viewed 26 times
-1
-
Hi and welcome to Stack Overflow. Please add a minimal reproduction example in code. It's then way easier to help you. Read more about it stackoverflow.com/help/minimal-reproducible-example – Roy Jan 05 '21 at 06:41
-
Share also code you tried – mr. pc_coder Jan 05 '21 at 07:08
-
you need use "differents" variables to each dropdown. I suppose you has a `*ngFor`, so create an array of object – Eliseo Jan 05 '21 at 09:44
-
yeah thanks. will check it out – Pruthvi sai Jan 05 '21 at 13:09
1 Answers
0
If you're making this in basic html, you would have
<select name="month">
<option value="1">01</option>
<option value="2">02</option>
<!-- etc. etc. -->
</select>
<select name="year">
<option value="1900">1900</option>
<option value="1901">1901</option>
<!-- etc. etc. -->
</select>
and those same <select> tags for the row underneath.
You would probably use html or php to fill in those <select> tags with <option> tags, so I don't see how by changing a value, some other value could change.

Thomas W
- 32
- 5