ambuli
asked on
Using Jquery spinner with seconds
Hi there,
Is there a format option in Jquery spinner where I can get a seconds column as well. I tried 'HH:mm:ss' but it doesn't seem to work. Basically, I want the user to enter time in HH:MM:SS format in an input field. Is there a better solutions. Sorry, just learning javascript. Thank you
$('#FromTimePickerID').spi nner({
format : 'HH:mm'
});
Is there a format option in Jquery spinner where I can get a seconds column as well. I tried 'HH:mm:ss' but it doesn't seem to work. Basically, I want the user to enter time in HH:MM:SS format in an input field. Is there a better solutions. Sorry, just learning javascript. Thank you
$('#FromTimePickerID').spi
format : 'HH:mm'
});
Do you mean `datetimepicker`? If so, try format:'H:i:s' instead. Otherwise, provide a link to the plugin you are referring to.
ASKER
https://jqueryui.com/spinner/#time
This is the one I am using.
This is the one I am using.
ASKER
something similar to the solution posted here.
http://stackoverflow.com/questions/11803946/how-to-restrict-user-input-of-24-format-time-into-input-field
$("#time").inputmask("h:s" ,{ "placeholder": "hh/mm" });
But this does not work. I am getting an exception saying inputmask is not a function.
http://stackoverflow.com/questions/11803946/how-to-restrict-user-input-of-24-format-time-into-input-field
$("#time").inputmask("h:s"
But this does not work. I am getting an exception saying inputmask is not a function.
ASKER
The above link I posted does work. I did not realize the solution is based on the jq plugin. inputmask. https://github.com/RobinHerbots/jquery.inputmask
This solved my problem
This solved my problem
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.