Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 关于选择国旗选择行动_Html_Twitter Bootstrap_Onselect - Fatal编程技术网

Html 关于选择国旗选择行动

Html 关于选择国旗选择行动,html,twitter-bootstrap,onselect,Html,Twitter Bootstrap,Onselect,我在引导平台上使用selectbox列出多个可以选择的国家/地区标志。在上选择URL应更改为国家/地区的页面 但是,由于我没有使用值,我不知道如何实现这一点。当我使用时,标志不会显示如下所示。是否有人知道如何在选择时为该功能添加 <div class="bfh-selectbox bfh-countries pull-left" data-flags="true" data-country="NL" data-flags="true" data-blank="false" data-ava

我在引导平台上使用
selectbox
列出多个可以选择的国家/地区标志。在
上选择
URL应更改为国家/地区的页面

但是,由于我没有使用
,我不知道如何实现这一点。当我使用
时,标志不会显示如下所示。是否有人知道如何在选择时为该功能添加

<div class="bfh-selectbox bfh-countries pull-left" data-flags="true" data-country="NL" data-flags="true" data-blank="false" data-available="NL,BE">
</div>

明白了

$(document).ready(function(){
        $('.bfh-selectbox').on('change.bfhselectbox', function () {

        if($(this).val()=="something"){
            window.location.href="http://www.somelink.com";
        }
        else if($(this).val()=="somethingelse"){
            window.location.href="http://www.someotherlink.com";
        }
        else {
        }
   });
});