如何将引导表单帮助程序国家/地区选择器插入到表单中? [英] How to insert bootstrap form helper country picker to a form?

查看:75
本文介绍了如何将引导表单帮助程序国家/地区选择器插入到表单中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何将上述Bootstrap插件插入到我的表单中.我将所有必需的文件导入到表单文档中.我只插入此代码.我从来没有写过任何js代码.但这是行不通的.

how i insert above bootstrap plugin to my form. I import all necessary files to my form document. and I insert only this code. I never wrote any js code. But it is not work.

<div class="bfh-selectbox bfh-countries" data-country="US" data-flags="true">
</div>

这是我的国家/地区选择器链接.对我的问题有任何想法吗?

Here my country picker link. Have any idea for my problem?

http://bootstrapformhelpers.com/country/#example4

推荐答案

要使其正常运行,您应该添加到Bootstrap Form Helpers库的CSS和JS文件的链接,这些链接应该先前已下载到服务器上

To make it work you should add links to CSS and JS files of Bootstrap Form Helpers library which should be previously downloaded on your server

<link href="css/bootstrap-form-helpers.min.css" rel="stylesheet">
<script src="js/bootstrap-formhelpers.min.js"></script>

仔细阅读此页面 http://bootstrapformhelpers.com/gettingstarted/#jquery-plugins

这篇关于如何将引导表单帮助程序国家/地区选择器插入到表单中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆