Is there a way to populate a dropdown depending on the day of the week of a date entered in a text box.

For example if the date entered is a Monday, I would want values a,b and c in the drop down list and if the date entered is a Tuesday, I would want values d,e, and f in the drop down box.

What have you tried? Look into new Date().getDay() , document.createElement and element.appendChild .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.