You can scroll through all the elements where the Example idcontains med_date:
$( $('[id^=med_date_]') ).each(function() {
Can you do it with idand class, something like this
$( $('[id^=med_date_] [class^=med_group_]') ).each(function() {
The identifier may be med_date_1, med_date_2, med_date_3, etc
the same for the classmed_group_1, med_group_2, med_group_3, etc.
morne source
share