Skip to main content
confused 85
Participant
April 13, 2026
Answered

I need to make a drop down list of times in 15 minute increments in the 24 hour format. Would this be able to to be done with java script to save time

  • April 13, 2026
  • 1 reply
  • 23 views

I need to make a drop down list of times in 15 minute increments in the 24 hour format. Would this be able to to be done with java script to save time

    Correct answer Karl Heinz Kremer

    Yes, you can use JavaScript to make such a drop-down list. However, from a usability standpoint, I would advice against doing that: Just create one dropdown for the hour and then one dropdown for the minutes part. This will make it much easier on the user to set the correct time in the dropdown. You can then assemble the correct time from both parts using a simple JavaScript. You could use for example a hidden fields that would combine the hours and minutes, and when you need to reference the time, you would get the time from that hidden field. 

     

    1 reply

    Karl Heinz  Kremer
    Community Expert
    Karl Heinz KremerCommunity ExpertCorrect answer
    Community Expert
    April 13, 2026

    Yes, you can use JavaScript to make such a drop-down list. However, from a usability standpoint, I would advice against doing that: Just create one dropdown for the hour and then one dropdown for the minutes part. This will make it much easier on the user to set the correct time in the dropdown. You can then assemble the correct time from both parts using a simple JavaScript. You could use for example a hidden fields that would combine the hours and minutes, and when you need to reference the time, you would get the time from that hidden field. 

     

    Karl Heinz  Kremer
    Community Expert
    Community Expert
    April 13, 2026

    Here is a file that shows both approaches.