I am having problem on how to load the HTML <select> with values whenever the page is first loaded or when refreshed.
I am actually trying to create a date_select with 3 dropdown menus which includes year, month, and days in which when the month-menu or year-menu is changed it will automatically adjust the number of days.
For example, when I selected the month March the days will be 31 or April the days will be 30 only.
My problem is when the page is first loaded the day-menu is empty. I tried onload on the <select> but it didn't work. I am a beginner in programming so I am having trouble even simple exercises like this. Please help.
Try putting the onload attribute in the body tag instead of the select tag.