Answer the question
In order to leave comments, you need to log in
How to insert custom JavaScript validation code in Django form template?
Started learning JavaScript, I want to experiment with form fields, write JS functions to validate input data as I want, and not use inline validation, but in Django all form fields are inline
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question