html
Код: Выделить всё
Ch-Test5
Ch-Test5
Ch-Test5
Ch-Test5
Ch-Test5
Код: Выделить всё
script type="text/javascript">
$(function() {
$('#submit_button').click(function(e) {
e.preventDefault();
$.ajax({
async: false,
data: $('[name="headers"]').serialize(),
type: "POST",
url : '/search_submit',
})
});
});
< /code>
[b] python < /strong> < /p>
Используйте GetList, чтобы завершить выбранные флажки в качестве списка < /p>
if request.method == "POST":
headers = request.form.getlist("headers")
print("Selected checkboxes ",headers)
Любая справка оценена
Большое спасибо
Подробнее здесь: https://stackoverflow.com/questions/795 ... ontents-to
Мобильная версия