为什么这个bootstrap popover不能正常工作?
class SMSTemplateForm(forms.ModelForm):
def clean(self):
template_format = self.cleaned_data.get('template_form')
if len(template_format) > 160:
raise forms.ValidationError('SMS content too long.')
return self.cleaned_data
的Javascript
<section id='popOver'>
<figure>
<button class="btn btn-primary center-block" id="popoverBtn" data-toggle="popover" title="Popover Header" data-content='Somne content insdie Popover'>Popover</button>
<figcaption>Bootstrap Popover</figcaption>
</figure>
</section>