E
E
Egor Volkov2020-01-12 03:34:29
JavaScript
Egor Volkov, 2020-01-12 03:34:29

How to change form data in django?

I welcome everyone! You need to pass your parameters on clicking the Submit button: By default, it is passed (for only name and the "on" parameter if the radiobutton is active. How can I pass, for example, the id parameter (for input), instead of name?
<input type="submit" value="Отправить">
<input type="radio"...>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-01-12
@angel367

And what does django have to do with it? Add or hang an event on a button click and send everything you need with js. <input type="hidden" name="x" value="y">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question