Hello all,

I have a form that looks like this: 

MY_CHOICES = (('A', 'x^y = z'), ('B', 'y^z = x'),) 

class MyForm(forms.Form): 

my_choice_field = 
forms.MultipleChoiceField(widget=forms.CheckboxSelectMultiple(), 
choices=MY_CHOICES)

My question is: is it possible to display the power in superscript? That 
is, when outputting in HTML, it looks like

<li><label for="id_my_choice_filed_0"><input type="radio" 
id="id_my_choice_field_0" value="A" name="my_choice_field" /> x<sup>y</sup> 
= z</label></li>
<li><label for="id_my_choice_filed_1"><input type="radio" 
id="id_my_choice_field_1" value="A" name="my_choice_field" /> y<sup>x</sup> 
= x</label></li>.

Thank you! 





-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/nkiSCcX1DjcJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to