h3 / jquery-utils

Automatically exported from code.google.com/p/jquery-utils
MIT License
0 stars 0 forks source link

set default current time in textbox is not possible #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is there any way to set the value of the textbox to the current time ? Or
any other time ?

example:
$('#PrestationdTimeStart').timepickr({ convention: 24, defaultime:
current() });

Original issue reported on code.google.com by kris.nob...@gmail.com on 1 Jun 2009 at 12:37

GoogleCodeExporter commented 9 years ago
There is no automated way to set it to current time, however you could do it 
like this;

    var d = new Date();
    $('#PrestationdTimeStart')
        .timepickr({
            convention: 24, 
            val: d.getHours() +':'+  d.getMinutes()
        });

Original comment by hainea...@gmail.com on 1 Jun 2009 at 7:56

GoogleCodeExporter commented 9 years ago
thanks

Original comment by kris.nob...@gmail.com on 1 Jun 2009 at 10:31