lundi 12 septembre 2016

jquery check checkbox current time with other checkbox if current time are in start and end time? with checkbox group?

I want to check using checkbox group, and each checkbox have a start time and end time, I want to check if current checkbox when I try to checked, jquery would check the current time are in other checkbox for start and endt time or not? this is my try :

function checkcurrentgroup(g,t)
          {
              //alert(g); is the group id  
              //alert(t); is the checkbox current time (start time)
              if($(':checkbox.' + g + ':checked').length > 0)
              {


                  $(':checkbox.' + g + ':checked').each(function(i,e){

                  /*I don't know the code in here */

                  });

              }  
          }




Aucun commentaire:

Enregistrer un commentaire