I have a dropdown for number of travelers.
When I change the value (say select 2), it displays some more dropdowns (in this case 2 dropdowns) for entering the age of travelers.
This is existing functionality. Now I have created another dropdown, here I have written an onChange function that sets the value of travelers:
document.getElementById("travellers").value="1";
I want the additional dropdowns for the age to appear on their own which does not happen.
How can I effect this to happen using jQuery/JavaScript?