How to limit military time input with jQuery Masked plugin?
<p>I am using jQuery Timepicker alongside jQuery Masked plugin. Everything so far is working as expected. The user enters a time and it is formatted appropriately, and is then followed by a dropdown that the user can click to select the correct time as so:</p>

<p><strong>This is good:</strong></p>

<p><a href="https://i.stack.imgur.com/Uc7VZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uc7VZ.png" alt="enter image description here"></a></p>

<p>The problem is that I can enter in numbers larger than <code>23:59</code>, which would make for an invalid time format, like so:</p>

<p><strong>This is bad</strong></p>

<p><a href="https://i.stack.imgur.com/EMewH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EMewH.png" alt="enter image description here"></a></p>

<p>How would I use the Masked plugin to stop incorrect formats from being entered?</p>