Skip to content Skip to sidebar Skip to footer

Django: How Do I Change The Html Output Of A Django Form Element?

I have a date of birth selection of three select drop down boxes. My Django template looks like this: {{ reg_form.date_of_birth }} But I n

Solution 1:

Perhaps not so cleanly, I solved this problem using jQuery as follows.

I targeted each of the three select elements that were generated by Django in the HTML, and then used the .wrap() function to wrap them in div elements.


Post a Comment for "Django: How Do I Change The Html Output Of A Django Form Element?"