Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. class myForm(Form):
  2. myChoices = [
  3. ('0','Select an option <span class="caret"></span>'),
  4. ('1','Option 1'),
  5. ('2','Option 2')
  6. ]
  7. optionSelect = SelectField('Select', choices=myChoices, validators=[Required()])
  8.  
  9. from jinja2 import Markup
  10.  
  11. ('0', Markup('Select an option <span class="caret"></span>')),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement