Wednesday, 7 August 2013

database and jquery timepicker

database and jquery timepicker

I use timepicker and the jquery permit to select the hour and minute
interval we want. I would like to have different minute interval depends
on the data in my database. For example if the database number is 5 I want
to have
minutes: {
starts: 0, // first displayed minute
ends: 55, // last displayed minute
interval: 5 // interval of displayed minutes
},
and if it's 15 I would like to have
minutes: {
starts: 0, // first displayed minute
ends: 45, // last displayed minute
interval: 15 // interval of displayed minutes
},
I'm not sure if it's possible to do this since I don't know a lot about
jquery. After I'm using php.
does anyone have an idea? Thanks

No comments:

Post a Comment