I will describe the situation from scratch so that there is no clarity in the later stages.
I have Razor/c# code in .cshtml file
it generates table for me
@for (int nr_rows = 0; nr_rows < 31; nr_rows++)
{
var nr_names = nr_rows + 1;
@for (int nr_columns = 0; nr_columns < 18; nr_columns++)
{
if (nr_columns == 2)
{
<td id="td01"><input class="InputsForUser" type="time" name="start_@nr_names" id="id_start_@nr_names" /></td>
}
if (nr_columns == 3)
{
<td id="td01"><input class="InputsForUser" type="time" name="end_@nr_names" id="id_end_@nr_names" /></td>
}
}
}
which generates for me html in the browser (interprets in this way)
// ----------------------------------- Day 1
<input class="InputsForUser" type="time" name="start_1" id="id_start_1">
<input class="InputsForUser" type="time" name="end_1" id="id_end"_1>
// ----------------------------------- Day 2
<input class="InputsForUser" type="time" name="start_2" id="id_start_2">
<input class="InputsForUser" type="time" name="end_2" id="id_end_2">
// (...)
// ----------------------------------- Day 31
<input class="InputsForUser" type="time" name="start_31" id="id_start_31">
<input class="InputsForUser" type="time" name="end_31" id="id__end_31">
I am trying to make id = end at least equal to id = start, but I have no idea, please help
for example: if I enter 12:00 at the start, I cannot enter 11:50 at the end