'How to add <span> inside <label> generated by Django
I am generating django form as below:
{% for field in form %}
{{ field }}
{{ field.label_tag }}
{% endfor%}
I am getting
...
<label for="id_name">Name</label>
I would like to add span inside label so I can animate the label with css. Is there an easy way to do it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
