سلام
من یسری رکورد رو از سمت سرور میفرستم به کلاینت و به ازای هر کدومشون یک ردیف جدول توی صفحه اچ تی ام ال می سازم به شکل زیر :
{% if test_reseption_show %}
{% for test_reseption_shows in test_reseption_show %}
<input type = "text" name = "code_test_free"
{% if reception_code %}
value = "{{ test_reseption_shows.code_test }}"
{% endif %} hidden="True"
/>
<input type = "text" name = "code_reception_free"
value = "{{ reception_code }}" hidden="True"/>
<tr align = "center" >
<td>
{{ test_reseption_shows.full_name}}
</td>
<td>
{{ test_reseption_shows.code_test}}
</td>
<td>
<input type = "checkbox"
onclick = "Test_Reception_free(event)"
name = "free_" + {{ test_reseption_shows.code_test}}
{% if reception_search %}
{% for reception_search in reception_search %}
{%if reception_search.free %}
checked = "checked"
{% endif %}
{% endfor %}
{% elif form.free.value = True %}
checked = "checked"
{% endif %}/>
</td>
<td>
<input type = "submit" class="button_delete" value ="" name = "delet" formaction = "/delete_test_reception/"/>
</td>
</tr>
{% endfor %}
{% endif %}
توی هر سطر یک باتن میزارم با آی دی داینامیک که تولید میکنم
ولی وقتی که روی یکی از این باتنا کلیک میکنم نمیدونم چطور به سرور بفهمونم که کدومشون کلیک شده ؟؟؟؟؟؟؟؟؟؟؟/
میشه راهنمایی کنید لطفا
با تشکر