I am designing a timer. For that i want to convert the value the user types in to the input to a different format.
like this:
120000 => 12:00:00
34233 => 3:42:33
this is the JavaScript i have now:
$('input#time').focusout(function(){ startTime = $(this).val(); //here code that converts to different format $('input#time').val(startTime); }); So, how do i convert it?