Skip to content Skip to sidebar Skip to footer

Jquery And Dynamically Generated Table From A Start And Finish Value

I'd like to use a slider on a html form using jQuery. The slider needs values from 00:00 and 23:55 and have to handles on it for start and finish times. From the two values generat

Solution 1:

Wow you've done a lot of work with no answers! I'd recommend just iterating through each checkbox and using modulo arithmetic to determine whether it should be set or not. eg.

var i=0;
$('.chx').each(function(){
    $(this).attr('checked',(i % period==0));
    i++;
});

or similar. Where period is 1 for every checkbox, 2 for every other etc...

Post a Comment for "Jquery And Dynamically Generated Table From A Start And Finish Value"