I have an html file in my flask app with
<div>{{ form.remember_me() }} {{ form.remember_me.label }}</div>
How can I add a css class to the remember me input itself, not to the div or span around. The goal is to redesign the checkbox
I have an html file in my flask app with
<div>{{ form.remember_me() }} {{ form.remember_me.label }}</div>
How can I add a css class to the remember me input itself, not to the div or span around. The goal is to redesign the checkbox
You can pass a variable to the constructor like this:
{{ form.remember_me(class_='yourCustomClass') }}
Have you tried that? See the quickstart guide on rendering fields here.